x


How to limit collision..

Good day.. I was wondering if there's a way to limit collision effect - I was trying to develop a racing game but when the cars hit each other at high speed, they throw theirselves a lot.. like final destination.

is there a way to make (not disable collision) collision effects more gentle??

Thanks in advance..

more ▼

asked Jul 13 '12 at 08:58 AM

vanofthedawn12 gravatar image

vanofthedawn12
96 4 6 10

The fundamental problem here is not that you need to "limit collitions".

You just need to learn more about how the amazing PhysX system works!

Enjoy your learning experience, Bunny points the way to the first steps for you. Enjoy!

Jul 13 '12 at 10:17 AM Fattie
(comments are locked)
10|3000 characters needed characters left

3 answers: sort oldest

Try changing the mass in the physics component and/or scale in the transform component of your objects.

more ▼

answered Jul 13 '12 at 09:40 AM

The_Magical_Kiwi gravatar image

The_Magical_Kiwi
67 2 3 4

thank you sir!

Jul 13 '12 at 10:01 AM vanofthedawn12

Hehe, no probs :)

my answer got down voted though :(

Jul 18 '12 at 01:12 PM The_Magical_Kiwi
(comments are locked)
10|3000 characters needed characters left

Collision force is relative to speed and mass. A workaround to such behaviour is to increase the mass when the speed reaches some high values.

But keep in mind that the difference of two masses should not be greater than an order of 10 in the general case (order of 100 at the most). Otherwise your object can be send into orbit, or worse and unpredictable behaviours can happen.

Note that the documentation speaks of mass value between 0.1 and 10. But in my experience it is better to use higher values for high speed race game.

Also the bouciness can help absorb part of the energy produced upon collision.

more ▼

answered Jul 13 '12 at 09:40 AM

Kryptos gravatar image

Kryptos
7.2k 5 33

thank you sir for the answer!

Jul 13 '12 at 10:02 AM vanofthedawn12

Why the -1 vote?

Jul 13 '12 at 11:34 AM Kryptos

I'm not the one who did that because i can't sir, when i press the t-up it says please log-in as another user.. maybe anybody else pressed that..

Jul 13 '12 at 01:02 PM vanofthedawn12

I don't understand some people. Downvoting should only be the last resort if there is wrong or misleading information. Also a downvote should always be combined with a comment.

Instead of downvoting you could even edit the answer and correct the information if you think you are qualified to judge the answer.

Jul 14 '12 at 12:23 PM Bunny83
(comments are locked)
10|3000 characters needed characters left

The physic material has the greatest effect on the collision response, so play around with the settings. Create a physics material and assign it to your collider.

more ▼

answered Jul 13 '12 at 09:44 AM

Bunny83 gravatar image

Bunny83
46.9k 12 50 210

thank you sir..

Jul 13 '12 at 10:02 AM vanofthedawn12
(comments are locked)
10|3000 characters needed characters left
Your answer
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

By RSS:

Answers

Answers and Comments

Topics:

x5273
x424
x12

asked: Jul 13 '12 at 08:58 AM

Seen: 486 times

Last Updated: Jul 18 '12 at 01:12 PM