Interface IConstraintDesc
Description of a Constraint.
public interface IConstraintDesc
Properties
PivotInA
Position local to rigidbody A.
Vector3 PivotInA { get; }
Property Value
PivotInB
Position local to rigidbody B.
Vector3 PivotInB { get; }
Property Value
Remarks
Ignored when creating a body-world constraint.
Type
Type of the constraint description.
ConstraintTypes Type { get; }
Property Value
Methods
Build(RigidbodyComponent, RigidbodyComponent)
Create a new constraint according to the description properties between bodies A and B, or between A and World.
Constraint Build(RigidbodyComponent rigidbodyA, RigidbodyComponent rigidbodyB)
Parameters
rigidbodyA
RigidbodyComponentRigidbody A.
rigidbodyB
RigidbodyComponentRigidbody B (may be null).
Returns
- Constraint
A new constraint constructed in the Simulation. Needs to be added with AddConstraint(Constraint) to take effect.