Closed DarthMike closed 11 years ago
Fixed, also corrected hotspot transform in DirectX and OpenGL. Had to change some coordinates from tutorials/tests, as the hotspot translation was being added to normal x,y translation
Fixed 'incorrectly' hotspot transform in DirectX and OpenGL, as I misunderstood API. When changing hotspot to 0,5 , 0,5, it means that all coordinates refer to that point. so calling setPosition(0,0,0) effectively makes the CENTER position to be in this coordinate. I have to fix that regression on tutorials, and also changes mades to tests coordinates for that matter.
Fixes the coordinate regression in #89 too.
For both DirectX and OpenGL renderers, setting setMirrorX to an entity, and a HotSpot of 0,5 / 0,5, makes that the rotation will not rotate from center of entity.
Rotation should follow hotspot even if mirrored.
The same for collision. It seems that mirror affects the hotspot position.