FabGL
ESP32 Display Controller and Graphics Library

◆ update()

void fabgl::CollisionDetector::update ( Sprite sprite)

Updates collision detector.

When a sprite changes its position or size it is necessary to update the collision detector.
This method just updates the detector without generate collision events.

Parameters
spriteThe sprite to update.