ConstraintΒΆ
-
class
Constraint: System.Object, IConstraint, IDebugDrawable, System.IComparable<Constraint> A constraints forces a body to behave in a specific way.
-
readonly RigidBody
Body1 Gets the first body. Can be null.
-
readonly RigidBody
Body2 Gets the second body. Can be null.
-
public abstract void
PrepareForIteration(float timestep) Called once before iteration starts.
Parameters: - timestep (float) – The simulation timestep
-
public abstract void
Iterate() Iteratively solve this constraint.
-
public int
CompareTo(Constraint other) Parameters: - other (Jitter.Dynamics.Constraints.Constraint) –
-
public void
DebugDraw(IDebugDrawer drawer) Parameters: - drawer (Jitter.IDebugDrawer) –
-
readonly RigidBody