FabGL
ESP32 Display Controller and Graphics Library
|
Detects first collision with the specified sprite.
It is necessary to call CollisionDetector.update() before detectCollision() so sprites position and size are correctly updated.
sprite | The sprite to detect collision. |
removeCollidingSprites | If true the collided sprites are automatically removed from the collision detector. |
Definition at line 427 of file collisiondetector.cpp.