Ara
Download

Search or run a command

Jump to a section or open an Ara link.

Struct · Ara

Velocity2d

Authoritative velocity, synchronized at tick boundaries.

public struct Velocity2d : IComponent<Velocity2d>

Properties

TypeIndex

public static uint TypeIndex { get; }

Stable engine component index.

Fields

Linear

public Vector2 Linear;

World-space linear velocity.

Unit: m/s. Default: [0,0]. Replicated to relevant clients.

Angular

public float Angular;

Counter-clockwise angular velocity.

Unit: rad/s. Default: 0. Replicated to relevant clients.

Methods

Access

public static ref Velocity2d Access(Entity entity, bool write);

No description yet.

Insert

public static void Insert(in Commands commands, Entity entity, in Velocity2d value);

No description yet.

Contains

public static bool Contains(Entity entity);

No description yet.