Class Collider
A base collider class to handle intersection.
public abstract class Collider : Component, IDisposable
- Inheritance
-
Collider
- Implements
- Derived
- Inherited Members
Methods
Intersects(Point)
Whether this collider intersects with the given Microsoft.Xna.Framework.Point.
public abstract bool Intersects(Point point)
Parameters
pointPointThe Microsoft.Xna.Framework.Point to check against.
Returns
- bool
trueif the collider intersect with the given Microsoft.Xna.Framework.Point.
Intersects(BoxCollider)
Whether this collider intersects with the given BoxCollider.
public abstract bool Intersects(BoxCollider other)
Parameters
otherBoxColliderThe BoxCollider to check against.
Returns
- bool
trueif the collider intersect with the given BoxCollider.
Intersects(CircleCollider)
Whether this collider intersects with the given CircleCollider.
public abstract bool Intersects(CircleCollider other)
Parameters
otherCircleColliderThe CircleCollider to check against.
Returns
- bool
trueif the collider intersect with the given CircleCollider.
Intersects(Collider)
Whether this collider intersects with the other given collider.
public abstract bool Intersects(Collider other)
Parameters
otherColliderThe other collider used to check intersection.
Returns
- bool
trueif the colliders intersect.