- Home /
How to avoid character with kinematic rigidbody go into obstacles and not simulation physic?
I have an arcade car that moves around. it's rotation is not realistic and can rotate any direction very fast. all gravity and rotation is under my control but since there is no rigidbody i can't avoid going throw other static objects. i need a way to bring it out when it goes into other objects.
if i add a rigidbody and set 'Use Gravity' true then my car control system and physic simulation will mixed up and cause bad result.
how can i do this?
there may be something useful here, check out these scripts on UnifyCommunity :
http://unifycommunity.com/wiki/index.php?title=RigidbodyFPSWalker
http://unifycommunity.com/wiki/index.php?title=PhysicsFPSWalker
$$anonymous$$y character is a car with box collider and i want to rotate it. so i cant set 'rigidbody.freezeRotation = true;'
That is not the exact solution for my problem but gave me an idea to solve it. (I set my car to child of another GameObject with Rigidbody). Thanks.
Answer by Muuskii · Jul 24, 2012 at 08:33 PM
Have you tried going through the Unity car tutorial? It will teach you how to create a basic car game and probably get you started.
That is for realistic car. if CharacterController could be a Box my problem would be solved.
Your answer
Follow this Question
Related Questions
Weird bounce on collision with perfectly aligned (generated) meshes for fast object 3 Answers
Collision detection is not working for the player 0 Answers
Collision detection from specific directions using rigid body character? 0 Answers
OnParticleCollision not being called on Rigidbody 1 Answer
OnCollisionEnter isnt called when player lands on object 1 Answer