- Home /
3D Cube collision not working correctly
In the scene I'm working on I've got a game object acting as the player and a 3D cube to act as an invisible wall so that the player cannot leave the level area. However, I'm running into some issues in which the player object happily passes through the cube which has a box collider set. Please see the links below for how both of the objects have been configured:
Player object: https://www.dropbox.com/s/oystjc34rne1ac9/player-configuration.jpg?dl=0
Cube object: https://www.dropbox.com/s/f5dn0ucv6kcwuy8/wall-configuration.jpg?dl=0
Issue demonstration: https://www.dropbox.com/s/vmorg7ielxz4tqp/issue-demonstration.mp4?dl=0
If anyone could give me insight as to why I'm getting a different result that what I'd like to achieve, then that would be great.
Thanks.
hmm
have you tried messing with the players rigidbody so collision is continuous etc.
I agree with the above. Change it's collision to Continuous. Otherwise, it's just really weird. Everything seems to be correct, unless maybe you have a collider on the Game object that the wall is a child of that is set to Is Trigger. Show me the inspector values of that empty Game Object.