I have a wall, that usually can’t be passed through, until I start adding other walls to the scene. The closer to the other objects, the more the player goes into the wall (see below)
I am using this code to move my player (in a fixedUpdate() function)
moveDirection = new Vector3(speed * Input.GetAxis("Horizontal"),0, speed * Input.GetAxis("Vertical"));
moveDirection = transform.TransformDirection(moveDirection);
this.transform.rigidbody.velocity = moveDirection;
My player and wall both are rigidbodies with collision detection at continuous. Eventually my player just passes right through the wall. Any help? I have tried to look, but none of the topics were exactly like mine