Vixen
02b45cc4
csharp
public struct CharacterBody

The character controller an entity has been given.

Read the guide page for this →

Remarks

Attached by PhysicsScene and never by hand. Its absence is the query that finds entities still needing one, exactly as PhysicsBody's is — WithNone rather than a scan for a sentinel.

⚠ Neither [Component] nor [DataContract], and the pair of absences is load-bearing. A scene component is one carrying both; this carries neither, so nothing has to remember to exclude a handle that means nothing outside the world that issued it. The same construction PhysicsBody uses, for the same reason, and the bridge rebuilds it from CharacterMovement on the first step after a load.

Fields and properties (3)

  • public int Handle

    Which controller, in the scene's own table.

  • public ShapeId BuiltShape

    The shape the controller was built with, so a swap can be told from a no-op.

  • public Vector3 BuiltOffset

    The offset that shape is centred by, so the writeback and the next swap agree.

Used by (3)

  • CharacterMovementSystemVixen.Physics
  • CharacterSceneTestsVixen.Physics.Tests
  • PhysicsSceneVixen.Physics