Struct ConstraintData
- Namespace
- Jitter2.Dynamics.Constraints
- Assembly
- Jitter2.dll
Low-level data for constraints, stored in unmanaged memory.
public struct ConstraintData
- Inherited Members
Remarks
This structure is stored in unmanaged memory and accessed via Handle. 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 ConstraintData, float, void> Iterate
Field Value
- delegate*<ref ConstraintData, float, void>
PrepareForIteration
Function pointer to the constraint's pre-iteration setup.
public delegate*<ref ConstraintData, float, void> PrepareForIteration
Field Value
- delegate*<ref ConstraintData, float, void>