Jump to content

Transfer of Momentum Physics?


mrSully
 Share

Recommended Posts

I am working on bouncing one body into a set of others (similar to bowling), but where every collision is calculated individually between two objects.

 

How can I instantly stop the momentum of the colliding object and and transfer it to the object collided with?

 

my thoughts in psuedo:

 

collided.body.velocity.x = colliding.body.velocity.x;

collided.body.velocity.y = colliding.body.velocity.y;

 

If this would work, what would my condition in my update() function be to find the moment when the two collide.  Simple question, and I'm sure it is very easy, but I do not have access to a testing environment atm and am just looking for some guidance if anyone is familiar

 

Thanks in advance!

 

Sully

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