Jump to content

arcade collision without body.velocity


Recommended Posts

You can mitigate the 'sliding' by either zeroing the velocity when the player isn't holding a direction, or setting the body.drag.x and .y values to something very high. Otherwise collisions will not be properly calculated, as velocity is used within the collision calculation. You can try setting body.moves = false and then move the character manually and hope the separation routine doesn't go too crazy - it's definitely worth trying in your particular scenario.

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