FabGL
ESP32 VGA Controller and Graphics Library
|
void fabgl::Scene::updateSpriteAndDetectCollisions | ( | Sprite * | sprite | ) |
Update collision detector and generate collision events.
When a sprite changes its position or size it is necessary to update the collision detector. This method updates the detector and generates collision events accordly.
sprite | The sprite to update and to check for collisions. |