The CollisionSystem type exposes the following members.

Methods

  NameDescription
Public methodAddCollisionSkin
Don't add skins whilst doing detection!
Public methodCollisionSkinMoved
Whenever a skin changes position it will call this to let us update our internal state.
Public methodDetectAllCollisions
As DetectCollisions but detects for all bodies, testing each pair only once
Public methodDetectCollisions
Detects all collisions between the body and all the registered collision skins (which should have already had their positions/bounding volumes etc updated). For each potential pair of skins then the predicate (if it exists) will be called to see whether or not to continue. If the skins are closer than collTolerance (+ve value means report objects that aren't quite colliding) then the functor will get called. You can't just loop over all your bodies calling this, because that will double-detect collisions. Use DetectAllCollisions for that.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetCollDetectFunctor
Get the previously registered function for the pair type. May return 0.
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 methodRegisterCollDetectFunctor
type0/1 could be from tCollisionSkinType or they could be larger values. The collision detection table will get extended as necessary. You only need to register the function once (i.e. not for type0, type1 then type1, type 0).
Public methodRemoveCollisionSkin
Don't remove skins whilst doing detection!
Public methodSegmentIntersect
Intersect a segment with the world. If non-zero the predicate allows certain skins to be excluded
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)

See Also