Jump to content

p2 addPolygon


Recommended Posts

Hello there.


Im trying to use the addPolygon on the body of a sprite but it seems that after i do that, the body will not collide with others.


objecttr100x86Sprite.body.addPolygon( {} ,    -1, -41  ,  47, 42  ,  -47, 42  ,  -47, 43  );


So now this body is not colliding with others for some reason.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...