Class BoxCollider
Represents a box-shaped collider behavior in 2D for a physics object.
Inherited Members
Namespace: Genesis.Core.Behaviors.Physics2D
Assembly: Genesis.dll
Syntax
public class BoxCollider : ColliderBehavior2D
Remarks
This class extends ColliderBehavior2D to provide specific functionality for box-shaped colliders.
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(int, int)
Creates a collider using the provided PhysicHandler.
Declaration
public override void CreateCollider(int collisionGroup = -1, int collisionMask = -1)
Parameters
Type | Name | Description |
---|---|---|
int | collisionGroup | |
int | collisionMask |