| ContactSetCreate Method |
Creates an instance of the
ContactSet class. (This method
reuses a previously recycled instance or allocates a new instance if necessary.)
Namespace: DigitalRune.Geometry.CollisionsAssembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax public static ContactSet Create(
CollisionObject objectA,
CollisionObject objectB
)
Public Shared Function Create (
objectA As CollisionObject,
objectB As CollisionObject
) As ContactSet
public:
static ContactSet^ Create(
CollisionObject^ objectA,
CollisionObject^ objectB
)
static member Create :
objectA : CollisionObject *
objectB : CollisionObject -> ContactSet
Parameters
- objectA
- Type: DigitalRune.Geometry.CollisionsCollisionObject
The object A. - objectB
- Type: DigitalRune.Geometry.CollisionsCollisionObject
The object B.
Return Value
Type:
ContactSetA new or reusable instance of the
ContactSet class.
Exceptions Remarks
This method tries to obtain a previously recycled instance from a resource pool if resource
pooling is enabled (see ResourcePool.Enabled). If no
object is available, a new instance is automatically allocated on the heap.
The owner of the object should call Recycle when the instance is no longer
needed.
See Also