Class BoxCollider
Defines a box collider behavior for 3D physics simulations.
Inherited Members
Namespace: Genesis.Core.Behaviors.Physics3D
Assembly: Genesis.dll
Syntax
public class BoxCollider : ColliderBehavior3D
Constructors
BoxCollider(PhysicHandler)
Initializes a new instance of the BoxCollider class with the specified physics handler.
Declaration
public BoxCollider(PhysicHandler physicHandler)
Parameters
| Type | Name | Description |
|---|---|---|
| PhysicHandler | physicHandler | The physics handler to associate with this box collider. |
Methods
CreateCollider(Vec3, int, int)
Creates a box collider with specified half extends.
Declaration
public void CreateCollider(Vec3 boxHalfExtends, int collisionGroup = -1, int collisionMask = -1)
Parameters
| Type | Name | Description |
|---|---|---|
| Vec3 | boxHalfExtends | Half extends of the box collider. |
| int | collisionGroup | |
| int | collisionMask |
CreateCollider(int, int)
Creates a box collider with default half extends.
Declaration
public override void CreateCollider(int collisionGroup = -1, int collisionMask = -1)
Parameters
| Type | Name | Description |
|---|---|---|
| int | collisionGroup | |
| int | collisionMask |