Bounce Effect with Gravity? (Solved)
by Josef Schalk · in Torque X 2D · 08/16/2009 (4:54 am) · 0 replies
Hey
Does anyone know of a way that this can be done. I want a ball that will fall and then bounce off an object and then keep bouncing but not as high until it comes to a complete stop.
I can get the ball to bounce but it will just keep bouncing and get higher, I am using the bounce collision and force component. I think that it may require a mod to the bounce collision to subtract some velocity of the ball each time the ball bounces.
Anyone got any ideas?
Also does anyone know if the stock components can be modded? Is there an actual cs file for these components cos i have looked for them and cant find them. Are they hard-coded in?
***EDIT***
I solved this. Applied rigid collision to the ball, reduced the restitution to about .2 or .3. Gave it a T2dforcecomponent. Used Massless, can also use Force, didn't find that difference that significant, though the massless force seem to settle better. Using 8 points on the ball for the collision the ball settled okay, but still a little too long for my liking. So i will have to write a separate component to settle the ball earlier than letting it do it by itself.
Does anyone know of a way that this can be done. I want a ball that will fall and then bounce off an object and then keep bouncing but not as high until it comes to a complete stop.
I can get the ball to bounce but it will just keep bouncing and get higher, I am using the bounce collision and force component. I think that it may require a mod to the bounce collision to subtract some velocity of the ball each time the ball bounces.
Anyone got any ideas?
Also does anyone know if the stock components can be modded? Is there an actual cs file for these components cos i have looked for them and cant find them. Are they hard-coded in?
***EDIT***
I solved this. Applied rigid collision to the ball, reduced the restitution to about .2 or .3. Gave it a T2dforcecomponent. Used Massless, can also use Force, didn't find that difference that significant, though the massless force seem to settle better. Using 8 points on the ball for the collision the ball settled okay, but still a little too long for my liking. So i will have to write a separate component to settle the ball earlier than letting it do it by itself.
About the author