mirror of
https://github.com/Heretek-AI/GDevelop.git
synced 2026-08-26 18:46:41 -04:00
fb849be246
AABB was not properly computed for rotated objects or objects with a non default center/origin. This could create issues while checking collisions and for behaviors/logic relying on spatial hashing (platformer, pathfinding). * Add benchmark to compare the speed of the implementation for non rotated object (simple/faster) and for rotated objects (always exact but 12-15% slower). * Add a method to render AABB of objects to ease debugging. * Also add a test game. * Add tests for AABB * Add tests for getHitboxes for gdjs.SpriteRuntimeObject