Hello everybody! I have a problem with physics (I think). I am new in unity, so I don't know how to solve it, and I was searching for some answers in google and found nothing. Basicly, my character clip through walls, doors, and everything when I walk towards the object. This is what happens (youtube.com). What could it be? This is the code I use: Code (CSharp): [SerializeField] float speed = 8f; //Private variables Rigidbody rb; float xDir; float yDir; void Start() { //Get the component rigidbody rb = GetComponent<Rigidbody>(); } void Update() { //Update variables xDir = 0f; yDir = 0f; //Get input if (Input.GetKey(KeyCode.W)) {yDir = 1f;} if (Input.GetKey(KeyCode.S)) {yDir = -1f;} if (Input.GetKey(KeyCode.D)) {xDir = 1f;} if (Input.GetKey(KeyCode.A)) {xDir = -1f;} //Fix diagonals if (xDir != 0 && yDir != 0) { xDir *= Mathf.Cos(Mathf.PI/4); yDir *= Mathf.Cos(Mathf.PI/4); } } void FixedUpdate() { //Move the player Vector3 move = new Vector3(xDir, 0, yDir); rb.MovePosition(transform.position + move * speed * Time.deltaTime); }