- Home /
[Closed] Physic problems while moving character
I have on my character capsule collider and also rigidbody, and moving him like this:
function Move(){
transform.Translate (transform.right * Time.deltaTime * (-speedX));
transform.Translate (transform.forward * Time.deltaTime * speedZ);
}
When Im trying move my character through wall (for example, on wall only box/mesh collider exist) - collider works well, and character doesnt move through it, but during move he is pushed away by force, it seems like little lags, he is like "shaking" near the wall.
Any ideas? If u reccomending to use AddForce, please give me some tutorials for better usage (cause I cant bring character move normally with it).
Answer by chariot · Jan 22, 2015 at 12:43 PM
And here is a answer!
Just open Edit > Project Settings > Time, and in "Fixed Timestep" write 0.001, then physic start work very sweety.
Thanks Unity Community!
Your answer
Follow this Question
Related Questions
FIXED: How can I stop a collider from tunneling? 2 Answers
Simple Movement Game: Physics vs Manual Collision Detection? 2 Answers
Collision Issue - Walk Through Object 0 Answers
Vehicle Rigidbody Movement / Collision 1 Answer
Player getting stuck in ground (3D) player has Rigidbody, and Box Collider, world is Mesh Colliders 0 Answers