Collider component representing an axis-aligned bounding box (AABB) for collision detection. Used to check and resolve collisions for actors in the scene.
BoxAABBComponent(Actor* pOwner, int pUpdateOder, Vector3D pSize, Vector3D pRelativePosition);
Constructor of an AABB box collider.
bool CheckCollisionWith(ColliderComponent* other, ContactManifold& infosOut) override;
Checks the collision with another collider component.
Vector3D GetLastPosition();
Returns the position last frame.
std::pair<Vector3D, Vector3D> GetCollisionPosition() const override;
Returns the collision position.
AABB GetAABB() override;
Returns the AABB struct of the collider
ColliderType GetColliderType() const override;
Returns the colliderType.