- Home /
Rigidbody Sink into BoxColider
i've create a box that have rigidbody and this code:
function Update () {
transform.Translate(0,0,2);
}
but the box, sink into a wall in front of it.
i recorded the screen, link: http://www.screenr.com/Ozl7
i want to move the box without character controller.
how can i fix that?!
thank you!
Comment
transform.Translate changes the position of your gameObject no matter what. If you want to use collisions you need to move your rigidbody with Rigidbody.AddForce. Also rigidbody walker scripts can be found on the wiki.
Your answer
Follow this Question
Related Questions
stop vehicle from moving through walls 1 Answer
Rigidbody.MovePosition relativeTo parent 0 Answers
How to give jump without rigidboy by using transform? 1 Answer
Move object upon hitting camera ray 1 Answer
Can't move instantiated prefab 2 Answers