Class SphereCollider
- Namespace
- LibGFX.Physics.Behaviors2D
- Assembly
- LibGFX.dll
Represents a 2D sphere collider
public class SphereCollider : CollisionBehavior, IGameBehavior
- Inheritance
-
SphereCollider
- Implements
- Inherited Members
Constructors
SphereCollider(PhysicsHandler)
Creates a new 2D sphere collider
public SphereCollider(PhysicsHandler physicsHandler)
Parameters
physicsHandlerPhysicsHandler
Methods
CreateCollider(float, float, int, int)
Creates a 2D sphere collider with the given mass and radius
public void CreateCollider(float mass, float radius, int collisionGroup = -1, int collisionMask = -1)