The CollisionSystem type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | CollisionSystem |
Constructor initialized the default CollisionFunctors. Other CollisionFunctors can be added with
RegisterCollDetectFunctor.
|
Methods
Name | Description | |
---|---|---|
![]() | AddCollisionSkin |
Don't add skins whilst doing detection!
|
![]() | CollisionSkinMoved |
Whenever a skin changes position it will call this to let us
update our internal state.
|
![]() | DetectAllCollisions |
As DetectCollisions but detects for all bodies, testing each pair
only once
|
![]() | DetectCollisions |
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.
|
![]() | Equals | (Inherited from Object.) |
![]() | Finalize |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) |
![]() | GetCollDetectFunctor |
Get the previously registered function for the pair type. May
return 0.
|
![]() | 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.) |
![]() | RegisterCollDetectFunctor |
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).
|
![]() | RemoveCollisionSkin |
Don't remove skins whilst doing detection!
|
![]() | SegmentIntersect |
Intersect a segment with the world. If non-zero the predicate
allows certain skins to be excluded
|
![]() | ToString | (Inherited from Object.) |
Properties
Name | Description | |
---|---|---|
![]() | CollisionSkins |
CollisionSkins
|
![]() | MaterialTable |
Gets the current MaterialTable of the CollisionSystem.
|
![]() | UseSweepTests |
Gets or Sets whether collision tests should use sweep or overlap
|