1 #ifndef DENGINE_COLLIDER_H 2 #define DENGINE_COLLIDER_H 6 #include "../System/Component.h" 35 #endif //DENGINE_COLLIDER_H Collider(GameObject &associated, Vec2 scale={1, 1}, Vec2 offset={0, 0})
Definition: Collider.cpp:5
SDL_Rect box
A rect denoting the collider's position in space.
Definition: Collider.h:19
A base object for a game The gameobject can be considered the most basic building block of a game...
Definition: GameObject.h:19
Colliders are used to determine collisions between objects in the world's space.
Definition: Collider.h:13
A vector composed of two points.
Definition: Vec2.h:11
Vec2 offset
The collider's offset from it's parent object.
Definition: Collider.h:31
Vec2 scale
The scale of the collider.
Definition: Collider.h:27
Gameobject component that asssists in adding additional functionality.
Definition: Component.h:14
void Update() override
Definition: Collider.cpp:9
The namespace containing the engine's code.
Definition: Collider.h:9