Custom polygon from Sprite Frame #1974
paulocoutinhox
started this conversation in
General
Replies: 4 comments 10 replies
-
Maybe a new method/constructor here: https://github.com/axmolengine/axmol/blob/dev/core/2d/AutoPolygon.cpp#L173-L185 That support Texture2D/Image. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Can't you get |
Beta Was this translation helpful? Give feedback.
3 replies
-
Made a small video for you hope it helps. |
Beta Was this translation helpful? Give feedback.
5 replies
-
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
How can we create a custom polygon physic body from Sprite Frame?
Today the auto polygon only support filename, but by image frame is inside atlas.
Example of what im doing today in this simple code:
The problem is that it don't follow the sprite contours, see:
I search in some websites for cocos2d-x versions of any code to i port, but i don't find anyone.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions