
You can set various options there, like the movement or rotation speed. Now go to the properties window of the camera, open the 'Behaviors' tab and select the 'First Person Shooter style controlled' behavior:
#Coppercube first person tutor windows#
You can try if your camera is ok by testing your app, for example clicking Tools -> Test as Windows Application, and move around in your 3d scene a bit. You can use the scale tool (shortcut 'R') to change the size of the ellipsoid.Īlso, be sure that the yellow ellipsoid 'flies' a bit in the air and that it doesn't touch any wall or floor in the beginning, otherwise the user would be stuck in that wall at the start of the application and would not be able to move. You need to make it big enough that it is possible for the user to climb stairs, but small enough to fit through doors.
Maybe you need to adjust the size of this ellipsoid, so that it matches your scene. This is the collision body, basically the size of the person walking around in the scene. Notice the yellow outline of an ellipsoid around the camera.
MovementRotationAnimationSpeed: Determines how fast the rotation animation gets applied to the child model.The newly created first person shooter camera. MouseSwayRotationMult: A vector3 determining the strength of the mouse movement on each axis on the rotation of the child model. MovementRotationMult: A vector3 determining the strength of the player's movement on each axis on the rotation of the child model. IdleSpeedMult: Determines the strength of the animation played while the player is standing / idling. IdleAnimationSpeed: Determines how fast the idle animation (not moving) plays. MovementCameraShakeSpeed: Can be used to apply camera shake while moving, a small value like 0.05 is recommended. MovementSwa圜lamp: Can be used to clamp the min/max position of the child node, it defaults to 100, lower this value if you're experiencing clipping. MovementSpeedThreshold: The movement animation starts playing when the player's velocity goes past this threshold, the default value should be fine, but you can always tweak this based on the players speed in your project. MovementAnimationSpeed: Determines how fast the walking animation plays. MovementSpeedMult: Determines the strength of the animation played while the player is moving around. MouseSwayAnimationSpeed: Determines how fast the mouse sway animation plays. MouseSwayX, MouseSwayY: Determines the strength of the animation played when mouse movement occurs. ChildIndex: Set the index of the child you wish to animate, if it's the first child of your camera node put 0, if it's the second one put 1 and so on. Assign the SM Child Node Animator extension to your camera. Add the model you wish to animate as the child of your camera, and position / rotate it however you want. Set the RotateSpeed of the First Person Shooter Style controlled to 0. Add the built-in First Person Shooter Style controlled to the camera and make sure it is below the Mouse Look extension. Assign the Mouse Look extension to the camera. Watch the youtube video for demonstration and basic set up process This extension can be used to easily animate first person models inside of CopperCube.