Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by ChunkoGames · Aug 08, 2013 at 05:54 PM · bouncecollisions

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?

bouncless properties.png (8.2 kB)
Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image ChunkoGames · Aug 08, 2013 at 07:44 PM 0
Share

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

1 Reply

· Add your reply
  • Sort: 
avatar image
2
Best Answer

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.

Comment
Add comment · Show 5 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image ChunkoGames · Aug 08, 2013 at 09:05 PM 1
Share

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

avatar image clunk47 · Aug 08, 2013 at 09:09 PM 1
Share

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

avatar image JuanseCoello · Aug 08, 2013 at 09:43 PM 2
Share

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

avatar image ChunkoGames · Aug 08, 2013 at 10:09 PM 2
Share

Ok I upvoted.

avatar image clunk47 · Aug 08, 2013 at 10:10 PM 1
Share

Cool cool thanks, and glad I could help :D

Your answer

Hint: You can notify a user about this post by typing @username

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

Answers Answers and Comments

16 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

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

Particle Collsion with a separate object 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges