Struct · Ara
CharacterMotion
Character support and stance mirrored at every fixed boundary.
public struct CharacterMotion : IComponent<CharacterMotion>Properties
TypeIndex
public static uint TypeIndex { get; }Stable engine component index.
Fields
Grounded
public bool Grounded;Walkable ground support.
Default: false. Replicated to the owning client.
Crouched
public bool Crouched;Actual stance; a ceiling can prevent standing.
Default: false. Replicated to the owning client.
GroundVelocity
public Vector3 GroundVelocity;Platform contact velocity.
Unit: m/s. Default: [0,0,0]. Replicated to the owning client.
GroundNormal
public Vector3 GroundNormal;Supporting surface normal.
Default: [0,0,0]. Replicated to the owning client.
Methods
Access
public static ref CharacterMotion Access(Entity entity, bool write);No description yet.
Insert
public static void Insert(in Commands commands, Entity entity, in CharacterMotion value);No description yet.
Contains
public static bool Contains(Entity entity);No description yet.