Struct · Ara
Joint
Joint on a body; connection zero anchors to the world. Anchors/axes are world-space.
public struct Joint : IComponent<Joint>Properties
TypeIndex
public static uint TypeIndex { get; }Stable engine component index.
Fields
Kind
public JointKind Kind;Constraint primitive.
Default: "fixed".
ConnectedBody
public ulong ConnectedBody;PhysicsId of the connected body; zero is the world.
Default: 0.
AnchorA
public Vector3 AnchorA;Anchor on the connected body, or the world anchor.
Unit: m. Default: [0,0,0].
AnchorB
public Vector3 AnchorB;Anchor on this entity's body.
Unit: m. Default: [0,0,0].
Axis
public Vector3 Axis;Unit primary axis (hinge direction, slider direction, or frame X).
Default: [1,0,0].
Normal
public Vector3 Normal;Unit perpendicular normal (frame Y).
Default: [0,1,0].
TranslationMin
public Vector3 TranslationMin;Minimum XYZ translation; X is the slider/distance lower bound.
Unit: m. Default: [0,0,0].
TranslationMax
public Vector3 TranslationMax;Maximum XYZ translation; X is the slider/distance upper bound.
Unit: m. Default: [0,0,0].
RotationMin
public Vector3 RotationMin;Minimum XYZ angular limits; X is the hinge lower bound.
Unit: rad. Range: [-3.1415928, 3.1415928]. Default: [0,0,0].
RotationMax
public Vector3 RotationMax;Maximum XYZ angular limits; X is the hinge upper bound.
Unit: rad. Range: [-3.1415928, 3.1415928]. Default: [0,0,0].
Methods
Access
public static ref Joint Access(Entity entity, bool write);No description yet.
Insert
public static void Insert(in Commands commands, Entity entity, in Joint value);No description yet.
Contains
public static bool Contains(Entity entity);No description yet.