pub struct FollowController {
pub target: Option<SkinnedMeshHandle>,
pub distance: f32,
pub height: f32,
pub drive: FollowDrive,
pub turn_speed: f32,
pub speed_parameter: String,
pub jump_height: f32,
}Expand description
Third-person follow settings carried on a CameraController.
When follow is set the camera becomes a third-person orbit camera: the
mouse orbits around the followed character, and WASD steers the character
itself (camera-relative). The character must be a
SkinnedMesh with a capsule, so it has a kinematic
character capsule to move.
Fields§
§target: Option<SkinnedMeshHandle>Name of the followed SkinnedMesh. It must declare a
capsule.
distance: f32Orbit distance from the pivot to the camera, in world units.
height: f32Pivot height above the character’s feet, in world units.
drive: FollowDriveHow the character moves; see FollowDrive.
turn_speed: f32Character turn rate toward the input heading, in radians per second.
speed_parameter: StringName of the character’s AnimationGraph float parameter that receives the current travel speed in world units per second (drives a locomotion blendspace). Empty disables parameter writes, leaving the graph externally driven.
jump_height: f32Jump apex height in world units when the jump key is pressed while
grounded. 0 disables jumping.
Trait Implementations§
Source§impl Clone for FollowController
impl Clone for FollowController
Source§fn clone(&self) -> FollowController
fn clone(&self) -> FollowController
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more