I want to move the cube using WASD and added rigidbody. But when I increase the moving speed bigger than 0.2f the cube does not collide with wall.
Please review my upload video to understand easily.
I want to move the cube using WASD and added rigidbody. But when I increase the moving speed bigger than 0.2f the cube does not collide with wall.
Please review my upload video to understand easily.
Try to use
GetComponent<RigidBody>().MovePosition();
instead and change the rigidbody collision detection setting from discrete to continuous.