| ContactSetReset Method |
Resets this contact set to default values.
Namespace: DigitalRune.Geometry.CollisionsAssembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax public void Reset(
CollisionObject objectA,
CollisionObject objectB
)
Public Sub Reset (
objectA As CollisionObject,
objectB As CollisionObject
)
public:
void Reset(
CollisionObject^ objectA,
CollisionObject^ objectB
)
member Reset :
objectA : CollisionObject *
objectB : CollisionObject -> unit
Parameters
- objectA
- Type: DigitalRune.Geometry.CollisionsCollisionObject
The first collision object. - objectB
- Type: DigitalRune.Geometry.CollisionsCollisionObject
The second collision object.
Remarks
This method allows to re-use an existing contact set instead of allocating a new instance on
the heap. This avoids garbage on the heap. In general, this method must only be used by the
creator of this instance. If the
ContactSet was created by the collision
detection, this method should not be used.
See Also