FabGL
ESP32 Display Controller and Graphics Library

◆ updateSprite()

void updateSprite ( Sprite sprite)
inline

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.
To generate collision events call Scene.updateSpriteAndDetectCollisions instead.

Parameters
spriteThe sprite to update.

Definition at line 156 of file scene.h.