Jump to content

bug or feature? p2 physics body is not below the rendered sprite


Recommended Posts

i opened this thread because the title of the thread where i found this problem is misleading.. so sorry for the double post :)




as you can see in the attached image the physics body of a fast moving sprite is sometimes far from directly below the sprite.


this is usually not a problem but when i try to make another spirte follow the first sprite it will always follow the physicsbody which is at a different position


this looks weird and renders the whole thing unusable..   in my case this should be a visual aid but if its pointing towards the wrong x and y coordinates it makes no sense


Link to comment
Share on other sites

so this is fixed in the newest dev branch.. thx to rich.


the debug circle is now drawn underneath the sprite..  the other problem that the second sprite (the white rope) is still behind the sprite exactly one frame can be circumvented by using the states preRender() method to update it's position instead of the update() method.

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...