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
Windows 10 , Core i5 , 6gb Ram , Intel Hd graphics card with Nvidia Geforce 920m/pcie/SSE2 Issue description:
When I used the Sprite option Create CollisionPolygon2D sibling the result is shown on the left the expected result is shown on the right. This happened when I used a sprite with Region set to true and Auto slicing option selected. The collision shape became offset from the position of the sprite
The original sprite was :
And my sprite was also rotated -90°
Steps to reproduce:
Put the second image provided above into a sprite, set the sprite Region option to true and use Auto slicing for the texture region and chose any auto sliced sprite . Then click on the sprite options and create a Collision Polygon Sibling for the sprite you should get a Collision Polygon offset from the position of the sprite by the same amount the auto sliced sprite is offset from the bounding box of the entire sprite as shown below
The text was updated successfully, but these errors were encountered:
Calinou
changed the title
Sprite create 2d collision polygon problem
Creating a CollisionPolygon2D from a Sprite has an incorrect offset is done from a Sprite with Region enabled
Nov 26, 2020
Godot version:
Godot 3.2.4 beta 2
OS/device including version:
Windows 10 , Core i5 , 6gb Ram , Intel Hd graphics card with Nvidia Geforce 920m/pcie/SSE2
Issue description:
When I used the
Sprite
optionCreate CollisionPolygon2D sibling
the result is shown on the left the expected result is shown on the right. This happened when I used a sprite withRegion
set to true andAuto slicing
option selected. The collision shape became offset from the position of the spriteThe original sprite was :
And my sprite was also rotated -90°
Steps to reproduce:
Put the second image provided above into a sprite, set the sprite
Region
option to true and useAuto slicing
for the texture region and chose any auto sliced sprite . Then click on the sprite options and create aCollision Polygon Sibling
for the sprite you should get a Collision Polygon offset from the position of the sprite by the same amount the auto sliced sprite is offset from the bounding box of the entire sprite as shown belowMinimal reproduction project:
Sprite offset Problem.zip
The text was updated successfully, but these errors were encountered: