Struct RagdollLinkDefinition2D
- Namespace
- Gravitas.Constraints
- Assembly
- Gravitas.dll
Authored link entry for a deterministic pure 2D ragdoll articulation.
public readonly struct RagdollLinkDefinition2D
- Inherited Members
Constructors
RagdollLinkDefinition2D(int, SolidBody2D)
Creates a pure 2D ragdoll link definition.
public RagdollLinkDefinition2D(int linkId, SolidBody2D body)
Parameters
linkIdintbodySolidBody2D
Properties
Body
Gets the body represented by this ragdoll link.
public SolidBody2D Body { get; }
Property Value
Collider
Gets the collider represented by this ragdoll link.
public LSCollider2D Collider { get; }
Property Value
LinkId
Gets the stable authored link ID.
public int LinkId { get; }