- Home /
Stop my car from bouncing like a rubber band ball
Ok so I already did a search for this problem and followed several sets of instructions none of which worked. Whenever my car lands on any surface from a high distance, or with a lot of velocity it winds up bouncing ridiculously. Currently right now both the car, and the object I am bouncing it on is made out of a bounceless material with the following properties: 
Additionally the giant cardboard box I am bouncing this one has the following script attached to it: using UnityEngine; using System.Collections;
public class killBounce : MonoBehaviour {
void OnCollisionEnter(Collision collision){ //set y velocity of collider to 0 and stop the annoying gamebreaking bouncing
Debug.Log("Killbounce activated");
var currentVelocity = collision.rigidbody.velocity;
currentVelocity.y = 0f;
collision.rigidbody.velocity = currentVelocity;
Debug.Log (collision.rigidbody.velocity.y);
}
}
But alas it is to no avail. The car still bounces like a kickball on a trampoline. What can I do to fix this?
Ok I fixed it by adjusting the gravity, and bounce threshold. Thanks for the help.
Answer by clunk47 · Aug 08, 2013 at 08:02 PM
Was going to convert my comment to an answer, but for some reason it's missing. So I'll post again.
Try adjusting your gravity.
If this helps, please accept/voteup the answer.
There now you can upvote. Also, use the check mark if you want to accept the answer, thumbs up is upvote.
Yes, i would also adjust the gravity and the mass of the object. I f you make it more heavier it will bounce less.
Your answer
Follow this Question
Related Questions
Why Rigidbody Collisions Bounce? 2 Answers
How to make an infinite mass solid body 1 Answer
Ball issue and question 0 Answers
Can't set Bounce Threshold below .3 0 Answers