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()
Creates the trigger using the parent's size half extents.
Declaration
public override void CreateTrigger()
Overrides
CreateTrigger(Vec3)
Creates a box trigger with the specified parameters.
Declaration
public void CreateTrigger(Vec3 boxHalfExtends)
Parameters
Type | Name | Description |
---|---|---|
Vec3 | boxHalfExtends | The half extends of the box trigger. |