44 static bool isPressed;
Defines a component for collision detection.
Defines the core classes for the Entity-Component-System (ECS) architecture.
Provides an entity with a physical bounding box for collision detection.
Definition Collider.h:22
The base class for all components in the ECS.
Definition ECS.h:53
A component attached to an entity that follows the mouse cursor.
Definition MouseTracker.h:17
void init() override
Initializes the component by getting the entity's transform and collider.
Definition MouseTracker.cpp:12
void reload() override
Resets the mouse pressed state.
Definition MouseTracker.cpp:24
static const bool getMouseButtonPressed()
Gets the current state of the primary mouse button.
Definition MouseTracker.cpp:28
void update() override
Updates the entity's position to match the mouse cursor's current coordinates.
Definition MouseTracker.cpp:18