Class CircleCollider
A circular Collider.
public class CircleCollider : Collider, IDisposable
- Inheritance
-
CircleCollider
- Implements
- Inherited Members
Constructors
CircleCollider(int)
Initializes a new instance of the CircleCollider with the given radius.
public CircleCollider(int radius)
Parameters
radiusintThe radius of the collider.
Properties
Radius
Gets or sets the radius.
public int Radius { get; set; }
Property Value
Methods
Draw(SpriteBatch)
Called once per frame to render the component.
protected override void Draw(SpriteBatch spriteBatch)
Parameters
spriteBatchSpriteBatchMicrosoft.Xna.Framework.Graphics.SpriteBatch
Intersects(Point)
Whether this collider intersects with the given Microsoft.Xna.Framework.Point.
public override 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 override 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 override 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 override bool Intersects(Collider other)
Parameters
otherColliderThe other collider used to check intersection.
Returns
- bool
trueif the colliders intersect.