2D box collider component for collision detection in the engine. This component allows an Actor to interact with other colliders using a rectangular (box) shape. It supports collision checks, debug rendering, and size management.
⚠️ TO DO : It may need to be patch, I'm not sure it's still working.
BoxCollider2DComponent(Actor* pOwner, int pUpdateOder, Vector3D pSize);
Constructor for a 2D box collider.
bool CheckCollisionWith(ColliderComponent* other, ContactManifold& infosOut) override;
Checks collision with another collider and fills contact information.
bool CheckCollisionWithBox(BoxCollider2DComponent* other);
Checks collision specifically with another BoxCollider2DComponent.
void SetShowInGame(bool pShowInGame);
Sets whether the collider should be shown in game (for debug).
void SetSize(Vector3D pSize);
Sets the size of the collider.