|
FabGL
ESP32 VGA Controller and Graphics Library
|
| Sprite * fabgl::CollisionDetector::detectCollision | ( | Sprite * | sprite, |
| bool | removeCollidingSprites = true |
||
| ) |
Detect 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. |