FabGL
ESP32 Display Controller and Graphics Library
|
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.
sprite | The sprite to add. |
Definition at line 397 of file collisiondetector.cpp.