Vixen
02b45cc4
csharp
public record class CharacterControllerSettings

How 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 Shape

    The character's collision volume. Usually a capsule.

  • public Vector3 Up

    Which way is up for this character.

  • public float MaxSlopeAngle

    The steepest slope it can stand on, in radians.

  • public float Mass

    Its mass in kilograms, which is what it pushes bodies with.

  • public float MaxPushForce

    The most force it can bring to bear on a body in its way, in newtons.

  • public float StepHeight

    How tall a step it can walk up without jumping.

  • public float StickToFloorDistance

    How 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 PenetrationRecoverySpeed

    How quickly it pushes itself out of geometry it has ended up inside, in metres a second.

  • public float PredictiveContactDistance

    How far ahead it looks for contacts, in metres.

  • public PhysicsLayer Layer

    Which layer it collides against.

  • public Vector3 Position

    Where it starts.

  • public Quaternion Rotation

    Which way it starts facing.

Used by (5)

  • CharacterControllerVixen.Physics
  • CharacterControllerTestsVixen.Physics.Tests
  • PhysicsSceneVixen.Physics
  • PhysicsWorldVixen.Physics
  • Vixen_Physics_Characters_CharacterControllerSettingsSerializerVixen.Physics