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()
Creates a box collider with default half extends.
Declaration
public override void CreateCollider()
Overrides
CreateCollider(Vec3)
Creates a box collider with specified half extends.
Declaration
public void CreateCollider(Vec3 boxHalfExtends)
Parameters
Type | Name | Description |
---|---|---|
Vec3 | boxHalfExtends | Half extends of the box collider. |