| SimulationContactConstraints Property |
Gets the contact constraints.
Namespace: DigitalRune.PhysicsAssembly: DigitalRune.Physics (in DigitalRune.Physics.dll) Version: 1.10.0.0 (1.10.0.14427)
Syntax public ReadOnlyCollection<ContactConstraint> ContactConstraints { get; }
Public ReadOnly Property ContactConstraints As ReadOnlyCollection(Of ContactConstraint)
Get
public:
property ReadOnlyCollection<ContactConstraint^>^ ContactConstraints {
ReadOnlyCollection<ContactConstraint^>^ get ();
}
member ContactConstraints : ReadOnlyCollection<ContactConstraint> with get
Property Value
Type:
ReadOnlyCollectionContactConstraintThe contact constraints.
Remarks
For all bodies that have contact and where collision response is enabled, the simulation
creates a
ContactConstraint for each
Contact. This list is
updated in each time step. The
ContactConstraint instances in this collection
should not be changed, but properties of the
ContactConstraints can be read.
For example,
LinearConstraintImpulse can used to check which
impulse was applied at this contact. This is useful if you want to "destroy" an object after
a severe collision.
See Also