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()
Creates a trigger with a sphere shape using the default radius (half of the parent's size).
Declaration
public override void CreateTrigger()
Overrides
CreateTrigger(Vec3, float)
Creates a trigger with a sphere shape at the specified offset.
Declaration
public void CreateTrigger(Vec3 offset, float radius)
Parameters
Type | Name | Description |
---|---|---|
Vec3 | offset | The offset from the parent element's location. |
float | radius | The radius of the sphere. |
CreateTrigger(float)
Creates a trigger with a sphere shape at the origin.
Declaration
public void CreateTrigger(float radius)
Parameters
Type | Name | Description |
---|---|---|
float | radius | The radius of the sphere. |