| CollisionAlgorithmGetClosestPoints Method |
Gets the closest points of two collision objects.
Namespace: DigitalRune.Geometry.Collisions.AlgorithmsAssembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax public ContactSet GetClosestPoints(
CollisionObject objectA,
CollisionObject objectB
)
Public Function GetClosestPoints (
objectA As CollisionObject,
objectB As CollisionObject
) As ContactSet
public:
ContactSet^ GetClosestPoints(
CollisionObject^ objectA,
CollisionObject^ objectB
)
member GetClosestPoints :
objectA : CollisionObject *
objectB : CollisionObject -> ContactSet
Parameters
- objectA
- Type: DigitalRune.Geometry.CollisionsCollisionObject
The collision object A. - objectB
- Type: DigitalRune.Geometry.CollisionsCollisionObject
The collision object B.
Return Value
Type:
ContactSetThe contact set with the closest points.
Exceptions Remarks
Note that it is possible that two collision objects have "no closest points", for example
if one collision object has an
EmptyShape.
See Also