FabGL
ESP32 Display Controller and Graphics Library

◆ addSprite()

void addSprite ( Sprite sprite)

Adds the specified sprite to collision detector.

The collision detector is updated calling CollisionDetector.update() or CollisionDetector.updateAndDetectCollision().
The number of sprites cannot exceed the value specified in CollisionDetector constructor.

Parameters
spriteThe sprite to add.

Definition at line 397 of file collisiondetector.cpp.