public record class CharacterControllerSettingsHow a character controller behaves.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
The defaults describe a human: 1.8 m tall in a 0.3 m capsule, able to walk up a 45° slope and a 0.4 m step, weighing 80 kg and able to push about a crate's worth.
Fields and properties (12)
public ShapeId ShapeThe character's collision volume. Usually a capsule.
public Vector3 UpWhich way is up for this character.
public float MaxSlopeAngleThe steepest slope it can stand on, in radians.
public float MassIts mass in kilograms, which is what it pushes bodies with.
public float MaxPushForceThe most force it can bring to bear on a body in its way, in newtons.
public float StepHeightHow tall a step it can walk up without jumping.
public float StickToFloorDistanceHow far down it looks for the floor when walking off a small drop, so it follows the ground rather than launching off it.
public float PenetrationRecoverySpeedHow quickly it pushes itself out of geometry it has ended up inside, in metres a second.
public float PredictiveContactDistanceHow far ahead it looks for contacts, in metres.
public PhysicsLayer LayerWhich layer it collides against.
public Vector3 PositionWhere it starts.
public Quaternion RotationWhich way it starts facing.
Used by (5)
- CharacterControllerVixen.Physics
- CharacterControllerTestsVixen.Physics.Tests
- PhysicsSceneVixen.Physics
- PhysicsWorldVixen.Physics
- Vixen_Physics_Characters_CharacterControllerSettingsSerializerVixen.Physics