Jump to content

p2 collision between sprite and dragable object


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


  • Recently Browsing   0 members

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