Jump to content

P2, bouncing, and collision with a material moving upward


Contra Code
 Share

Recommended Posts

I have a "bouncy" ball that will hit a fixed world surface and act as you would expect. However, when the world moves upward to the ball, the bouncing slows and if the world is moving fast enough, the bouncing stops completely and the ball "hugs" the world surface.

What I'd like to happen is to transfer the upward velocity of the world to the ball. So if the ball is falling and the world is moving up, I want the ball to act as if it has been hit by a swinging baseball bat. Right now, the ball acts as if it has been contacted by a magnet.

I just can't seem to find the right properties to make this type of collision happen.

Thanks! And thank you to all who have asked and answered the many questions I had while I was building my game. Such a great resource!

Edited by Contra Code
Somehow my entire post was replaced?
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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