Apply forces doesn't ignore the origin of the sprite
Posted: Thu 12 Apr 2018, 09:53
Apply forces to a position/object should take the origin of the sprite and not the 0,0.
Discussion, feedback and help for GDevelop - the open-source, online game creator
guepard wrote:Apply forces to a position/object should take the origin of the sprite and not the 0,0.
Lizard-13 wrote:That's to keep the object position unmodified on scaling: If the scaling anchor isn't at the object origin, scaling an object would move it too. To make it scaling from the center just put the object Origin point at the center
Personally, I think the Origin and Centre points should be the same, a lot of extra math for a little offset helping in the object positioning