Class SphereTrigger
Represents a Sphere trigger behavior for 3D physics.
Inherited Members
Namespace: Genesis.Core.Behaviors.Physics3D
Assembly: Genesis.dll
Syntax
public class SphereTrigger : TriggerBehavior3D
Constructors
SphereTrigger(PhysicHandler)
Declaration
public SphereTrigger(PhysicHandler physicHandler)
Parameters
| Type | Name | Description |
|---|---|---|
| PhysicHandler | physicHandler |
Methods
CreateTrigger(Vec3, float, int, int)
Creates a trigger with a sphere shape at the specified offset.
Declaration
public void CreateTrigger(Vec3 offset, float radius, int collisionGroup = -1, int collisionMask = -1)
Parameters
| Type | Name | Description |
|---|---|---|
| Vec3 | offset | The offset from the parent element's location. |
| float | radius | The radius of the sphere. |
| int | collisionGroup | |
| int | collisionMask |
CreateTrigger(int, int)
Creates a trigger with a sphere shape using the default radius (half of the parent's size).
Declaration
public override void CreateTrigger(int collisionGroup = -1, int collisionMask = -1)
Parameters
| Type | Name | Description |
|---|---|---|
| int | collisionGroup | |
| int | collisionMask |
Overrides
CreateTrigger(float, int, int)
Creates a trigger with a sphere shape at the origin.
Declaration
public void CreateTrigger(float radius, int collisionGroup = -1, int collisionMask = -1)
Parameters
| Type | Name | Description |
|---|---|---|
| float | radius | The radius of the sphere. |
| int | collisionGroup | |
| int | collisionMask |