You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found strange behaviour with static bodies. Bodies are not aligned with sprite image and placed by half of width of the sprite's image to the left off the sprite's center and half of the image height to bottom so you get offset for quarter of the rectangle (box body) to the left and bottom of the sprite's center. Non static bodies are well aligned with sprite's image.
On the image you can see quarter of the grey rectangle (static body) which should fill in whole white space but instead of it is displaced.
The text was updated successfully, but these errors were encountered:
I found strange behaviour with static bodies. Bodies are not aligned with sprite image and placed by half of width of the sprite's image to the left off the sprite's center and half of the image height to bottom so you get offset for quarter of the rectangle (box body) to the left and bottom of the sprite's center. Non static bodies are well aligned with sprite's image.
On the image you can see quarter of the grey rectangle (static body) which should fill in whole white space but instead of it is displaced.
The text was updated successfully, but these errors were encountered: