Ara
Download

Search or run a command

Jump to a section or open an Ara link.

Struct · Ara

RigidBody2d

Rigid-body authoring settings; simulation state is written to pose and velocity.

public struct RigidBody2d : IComponent<RigidBody2d>

Properties

TypeIndex

public static uint TypeIndex { get; }

Stable engine component index.

Fields

Motion

public MotionType2d Motion;

Static, kinematic, or dynamic motion.

Default: "static".

Mass

public float Mass;

Mass in kilograms; zero computes mass from the collider's 1 kg/m2 area density.

Unit: kg. Range: [0, ∞]. Default: 0.

AllowSleep

public bool AllowSleep;

Permit inactive bodies to sleep.

Default: true.

Continuous

public bool Continuous;

Use swept collision detection for fast bodies.

Default: false.

LockRotation

public bool LockRotation;

Prevent physical rotation, for upright props and platforms.

Default: false.

Methods

Access

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

No description yet.

Insert

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

No description yet.

Contains

public static bool Contains(Entity entity);

No description yet.