CollisionAlgorithmMatrix Class |
Namespace: DigitalRune.Geometry.Collisions
The CollisionAlgorithmMatrix type exposes the following members.
Name | Description | |
---|---|---|
CollisionAlgorithmMatrix |
Initializes a new instance of the CollisionAlgorithmMatrix class.
|
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
ItemContactSet |
Gets or sets the CollisionAlgorithm for the pair of collision objects.
| |
ItemType, Type |
Gets or sets the CollisionAlgorithm for the specified
shape types.
| |
ItemCollisionObject, CollisionObject |
Gets or sets the CollisionAlgorithm for the specified collision objects.
| |
ItemIGeometricObject, IGeometricObject |
Gets or sets the CollisionAlgorithm for the specified geometric objects.
| |
ItemShape, Shape |
Gets or sets the CollisionAlgorithm for the specified shape types.
|
This matrix is symmetric in the sense that the algorithm for Box vs. Sphere is the same as for Box vs. Sphere. If the algorithm Box vs. Sphere is set, then the same algorithm will be used for Sphere vs. Box. Algorithms are defined per class type pair not per class instance pair.
If a shape type is not registered, the base class of the shape type is checked. Example: If PerspectiveViewVolume is not tested, the base classes ViewVolume and ConvexShape will be checked. If an algorithm is registered for a base class, then this algorithm is used.
An algorithm can be set to NoCollisionAlgorithm to disable collisions between two shape types.
The matrix is automatically initialized with the default collision algorithms.