Class CapsuleCollider
Represents a Capsule Collider behavior for 3D physics.
Inherited Members
Namespace: Genesis.Core.Behaviors.Physics3D
Assembly: Genesis.dll
Syntax
public class CapsuleCollider : ColliderBehavior3D
Constructors
CapsuleCollider(PhysicHandler)
Initializes a new instance of the CapsuleCollider class with the specified physics handler.
Declaration
public CapsuleCollider(PhysicHandler physicHandler)
Parameters
| Type | Name | Description |
|---|---|---|
| PhysicHandler | physicHandler | The physics handler to associate with this capsule collider. |
Methods
CreateCollider(Vec3, float, float, int, int)
Creates a collider with a capsule shape at the specified offset.
Declaration
public void CreateCollider(Vec3 offset, float radius, float height, 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 capsule. |
| float | height | The height of the capsule. |
| int | collisionGroup | |
| int | collisionMask |
CreateCollider(int, int)
Creates a collider with a capsule shape using default dimensions.
Declaration
public override void CreateCollider(int collisionGroup = -1, int collisionMask = -1)
Parameters
| Type | Name | Description |
|---|---|---|
| int | collisionGroup | |
| int | collisionMask |
Overrides
CreateCollider(float, float, int, int)
Creates a collider with a capsule shape at the origin.
Declaration
public void CreateCollider(float radius, float height, int collisionGroup = -1, int collisionMask = -1)
Parameters
| Type | Name | Description |
|---|---|---|
| float | radius | The radius of the capsule. |
| float | height | The height of the capsule. |
| int | collisionGroup | |
| int | collisionMask |