FabGL
ESP32 VGA Controller and Graphics Library

◆ update()

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

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