FabGL
ESP32 Display Controller and Graphics Library

◆ updateSpriteAndDetectCollisions()

void updateSpriteAndDetectCollisions ( Sprite sprite)

Updates 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.

Definition at line 121 of file scene.cpp.