Ara
Download

Search or run a command

Jump to a section or open an Ara link.

Struct · Ara

Collider

Collision geometry, material, layer and trigger settings.

public struct Collider : IComponent<Collider>

Properties

TypeIndex

public static uint TypeIndex { get; }

Stable engine component index.

Fields

Kind

public ColliderKind Kind;

Primitive type or externally cooked shape.

Default: "box".

Center

public Vector3 Center;

Shape center in body-local metres, after visual scale is baked. The body origin remains at Transform/PhysicsPose; rotation also rotates this offset.

Unit: m. Default: [0,0,0].

HalfExtents

public Vector3 HalfExtents;

Box half extents; scale must be baked before physics extraction.

Unit: m. Range: [0.0001, ∞]. Default: [0.5,0.5,0.5].

Radius

public float Radius;

Sphere, capsule or cylinder radius.

Unit: m. Range: [0.0001, ∞]. Default: 0.5.

HalfHeight

public float HalfHeight;

Cylinder half height, excluding the capsule hemispheres.

Unit: m. Range: [0, ∞]. Default: 0.5.

Asset

public string Asset;

Cooked collision asset (@path#id); resolve into CookedCollider before ticking.

Default: null.

Node

public string Node;

Source model node name/index for model-derived geometry; absent uses its default scene.

Default: null.

Primitive

public uint? Primitive;

Subtree-local primitive for model-derived geometry; absent uses the complete subtree.

Default: null.

Layer

public uint Layer;

Zero selects static/moving defaults from the body; 1..15 select an explicit group.

Range: [0, 15]. Default: 0.

Sensor

public bool Sensor;

Report trigger events without a collision response.

Default: false.

Friction

public float Friction;

Coulomb friction coefficient.

Range: [0, ∞]. Default: 0.6.

Restitution

public float Restitution;

Elasticity: zero is inelastic, one is perfectly elastic.

Range: [0, 1]. Default: 0.

Methods

Access

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

No description yet.

Insert

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

No description yet.

Contains

public static bool Contains(Entity entity);

No description yet.