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()
Creates a collider using the provided PhysicHandler.
Declaration
public override void CreateCollider()