FabGL
ESP32 VGA Controller and Graphics Library

◆ updateSpriteAndDetectCollisions()

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.

Parameters
spriteThe sprite to update and to check for collisions.