Class BoxTrigger
Defines a box trigger behavior for 3D physics simulations.
Inherited Members
Namespace: Genesis.Core.Behaviors.Physics3D
Assembly: Genesis.dll
Syntax
public class BoxTrigger : TriggerBehavior3D
Constructors
BoxTrigger(PhysicHandler)
Initializes a new instance of the BoxTrigger class with the specified physics handler.
Declaration
public BoxTrigger(PhysicHandler physicHandler)
Parameters
Type | Name | Description |
---|---|---|
PhysicHandler | physicHandler | The physics handler to associate with this box trigger. |
Methods
CreateTrigger(Vec3, int, int)
Creates a box trigger with the specified parameters.
Declaration
public void CreateTrigger(Vec3 boxHalfExtends, int collisionGroup = -1, int collisionMask = -1)
Parameters
Type | Name | Description |
---|---|---|
Vec3 | boxHalfExtends | The half extends of the box trigger. |
int | collisionGroup | |
int | collisionMask |
CreateTrigger(int, int)
Creates the trigger using the parent's size half extents.
Declaration
public override void CreateTrigger(int collisionGroup = -1, int collisionMask = -1)
Parameters
Type | Name | Description |
---|---|---|
int | collisionGroup | |
int | collisionMask |