Jump to content

p2 collision between sprite and dragable object


lavokad
 Share

Recommended Posts

hi, I'm wondering what approach should be taken to implement for example the hit of baseball bat, golf sticker,etc to the ball with drag input enabled and p2 physics.I do set the pointer to x,y when dragged manually but if it is dragged too fast the stick or baseball gets passed the ball and the physics of collision are not applied well.

Instead of setting x,y when dragged I thought of calling moveToPoint to move point with some constant velocity but this method does not exist on p2 physics.

thanks in advance

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.

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

Loading...
 Share

  • Recently Browsing   0 members

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