Table of Contents

Class Collider

Namespace
MonoEight.Core.Physics
Assembly
MonoEight.Template.dll

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

point Point

The Microsoft.Xna.Framework.Point to check against.

Returns

bool

true if 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

other BoxCollider

The BoxCollider to check against.

Returns

bool

true if the collider intersect with the given BoxCollider.

Intersects(CircleCollider)

Whether this collider intersects with the given CircleCollider.

public abstract bool Intersects(CircleCollider other)

Parameters

other CircleCollider

The CircleCollider to check against.

Returns

bool

true if 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

other Collider

The other collider used to check intersection.

Returns

bool

true if the colliders intersect.