asge::game::components::Collider
A hitbox used for collision detection — a Rect or a Circle.
#include <Collider.hpp>Independent of Sprite — an entity's hitbox doesn't have to match its drawn size. Its world position is Transform.m_WorldCoordinates (top-left, same convention as RenderSystem) offset by the shape's own local origin (Rect's x/y, or Circle's m_Center).
Public Attributes
#
ColliderShape m_LocalBounds {}#
ResolutionType m_Resolution { ResolutionType::Solid }#
CollisionLayer m_Layer {1u}#
CollisionLayer m_Mask { ~CollisionLayer{0} }