VEGO-Engine  0.1
Loading...
Searching...
No Matches
ColliderComponent Class Reference
Inheritance diagram for ColliderComponent:
[legend]
Collaboration diagram for ColliderComponent:
[legend]

Public Member Functions

 ColliderComponent (const char *tag)
 
 ColliderComponent (const char *tag, float hitboxScale)
 
void init () override
 
void update (uint_fast16_t diffTime) override
 
void removeCollision ()
 
void handleCollision (Vector2D &characterPos, SDL_Rect &characterCollider, SDL_Rect &componentCollider)
 

Public Attributes

SDL_Rect collider
 
const char * tag
 
TransformComponenttransform
 
bool hasCollision
 
float hitboxScale
 
bool isProjectile = false
 
- Public Attributes inherited from Component
Entityentity
 

Member Function Documentation

◆ init()

void ColliderComponent::init ( )
overridevirtual

Reimplemented from Component.

◆ update()

void ColliderComponent::update ( uint_fast16_t diffTime)
overridevirtual

Reimplemented from Component.


The documentation for this class was generated from the following files: