Micheal mystics
Micheal mystics

Reputation: 11

Absorbing impact force during collision in a Car racing game

I am making a racing game and I want to impact between the wall and the car to be absorbed to the level where the car travelling at high-speed cant be thrown away in the other direction due to the large force... The video below shows how the car is booted away, and I want to reduce that to the minimum https://youtu.be/wGtMAXLG4b8

Upvotes: 0

Views: 256

Answers (1)

SeLeCtRa
SeLeCtRa

Reputation: 627

You can set PhysicMaterial.bounciness as 0, if you don't want this effect at all. Or change it as you wish.

How bouncy is the surface? A value of 0 will not bounce. A value of 1 will bounce without any loss of energy.

So, optimum value can be found with a few gameplay test. If you set it to 0, car won't lose any energy at all, so speed will be same. If it is 0, car's speed will be 0 and all energy will convert to the momentum.

Upvotes: 0

Related Questions