Click or drag to resize
DigitalRuneCollisionAlgorithmMatrix Class
A matrix which assigns a CollisionAlgorithm to each pair of Shape types.
Inheritance Hierarchy
SystemObject
  DigitalRune.Geometry.CollisionsCollisionAlgorithmMatrix

Namespace: DigitalRune.Geometry.Collisions
Assembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax
public class CollisionAlgorithmMatrix

The CollisionAlgorithmMatrix type exposes the following members.

Constructors
  NameDescription
Public methodCollisionAlgorithmMatrix
Initializes a new instance of the CollisionAlgorithmMatrix class.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
Remarks

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.

See Also