Before updating to Windows 10 you may need to return your Pro license. More information here

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: alt text

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?

more ▼

asked Aug 08, 2013 at 05:54 PM

avatar image

63 5 9 14

Ok I fixed it by adjusting the gravity, and bounce threshold. Thanks for the help.

Aug 08, 2013 at 07:44 PM ChunkoGames
(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first

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.

more ▼

answered Aug 08, 2013 at 08:02 PM

avatar image

37.3k 6 61 124

Thanks for the help. Wouldn't let me upvote though.

Aug 08, 2013 at 09:05 PM ChunkoGames

There now you can upvote. Also, use the check mark if you want to accept the answer, thumbs up is upvote.

Aug 08, 2013 at 09:09 PM clunk47

Yes, i would also adjust the gravity and the mass of the object. I f you make it more heavier it will bounce less.

Aug 08, 2013 at 09:43 PM JuanseCoello

Ok I upvoted.

Aug 08, 2013 at 10:09 PM ChunkoGames

Cool cool thanks, and glad I could help :D

Aug 08, 2013 at 10:10 PM clunk47
(comments are locked)
10|3000 characters needed characters left
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments



asked: Aug 08, 2013 at 05:54 PM

Seen: 1264 times

Last Updated: Aug 08, 2013 at 10:10 PM