Struct SmallConstraintData
- Namespace
- Jitter2.Dynamics.Constraints
- Assembly
- Jitter2.dll
Low-level data for constraints that fit within ConstraintSizeSmall bytes.
public struct SmallConstraintData
- Inherited Members
Remarks
This structure is stored in unmanaged memory and accessed via SmallHandle. It contains function pointers for the solver and handles to the connected bodies.
The data is valid only while the constraint is registered with the world. Do not cache references across simulation steps. Not safe to access concurrently with Step(float, bool).
Fields
Body1
Handle to the first body's simulation data.
public JHandle<RigidBodyData> Body1
Field Value
Body2
Handle to the second body's simulation data.
public JHandle<RigidBodyData> Body2
Field Value
Iterate
Function pointer to the constraint's iteration solver.
public delegate*<ref SmallConstraintData, float, void> Iterate
Field Value
- delegate*<ref SmallConstraintData, float, void>
PrepareForIteration
Function pointer to the constraint's pre-iteration setup.
public delegate*<ref SmallConstraintData, float, void> PrepareForIteration
Field Value
- delegate*<ref SmallConstraintData, float, void>