- Home /
Tone down physics/collisions
Greetings,
I am creating a space game involving high-speed fighters, etc. Things are going well, but I do have one slightly annoying issue regarding colliding objects.
The physics that take effect upon a small fighter colliding with, say a large asteroid, are ridiculously unbelievable. Instead of hitting an object, and having my small fighter flying in uncontrollable circles, i'd like the 'impact' to be fairly light (e.g: bounce back a few feet and slow to a stop). This is regardless of how fast the object(s) moved (e.g: the impact bounce-back ought to be pretty much the same).
I've experimented with 'mass' of the objects (via the rigidbody options), but this doesn't seem to have the effect I expected.
Any ideas would be welcomed, thanks.
Answer by FTheCloud · Aug 15, 2011 at 04:54 AM
You should have a rigidbody component attached to the small fighter and a rigidbody attached to the asteroid. In your inspector go to the rigidbody attached to the small fighter and increase the drag and angular drag until you get the desired effect. You can also make the mass of the asteroid and the small fighter proportional to each other for a more realistic effect.
Ex. Asteroids mass: 100, small fighter mass: 12
Answer by subcon · Aug 15, 2011 at 06:25 AM
Interesting - I thought the Unity instructions for rigidBody said you could only use mass values between 0 and 10.
Either way,implementing the drag you spoke of seems to have resolved my issue (now its just a matter of trial and error).
Thank you much
Your answer
Follow this Question
Related Questions
How to make an infinite mass solid body 1 Answer
Can't set Bounce Threshold below .3 0 Answers
More realistic physics? 0 Answers
How to get rid of jumpy collisions? 1 Answer
2D 360 degress platformer example needed 0 Answers