Search code examples
unity-game-enginegame-physics

Vehicle spins upon collision in unity


I'm developing a car game for Gear VR in unity. I'm currently facing a problem where the car spins upon collision. So far I've tried freezing the position and changing the angular drag to a larger value. Freezing problem doesn't solve the issue since the car stop turning completely on turns. Can anybody please advise any other solution. I'm using unity standard asset for the car physics.


Solution

  • I resolved the issue via scripting. On collision with wall, I just set the angular velocity of the car to Vector3.zero.