Class BoxTrigger
- Namespace
- LibGFX.Physics.Behaviors2D
- Assembly
- LibGFX.dll
Represents a 2D box trigger collider.
public class BoxTrigger : TriggerBehavior, IGameBehavior
- Inheritance
-
BoxTrigger
- Implements
- Inherited Members
Constructors
BoxTrigger(PhysicsHandler)
Creates a new box trigger collider.
public BoxTrigger(PhysicsHandler physicsHandler)
Parameters
physicsHandlerPhysicsHandler
Methods
CreateTrigger(Vector3, int, int)
Creates a box trigger collider with the given half extends and collision groups.
public void CreateTrigger(Vector3 halfExtends, int collisionGroup = -1, int collisionMask = -1)
Parameters
CreateTrigger(int, int)
Creates a box trigger collider with the given collision groups.
public void CreateTrigger(int collisionGroup = -1, int collisionMask = -1)