- Home /
Question by
Skrat17 · Apr 05, 2020 at 09:06 PM ·
cameracollisioncharactercontroller
Character Controller being pushed or not colliding with Plane Collider
Ok here it goes:
I have 2 Players in my game that i can move with Kbm and a controller.
I use a Character Controller to move my Players.
My main Camera follows the center of the 2 players bounds.
I created walls using 4 Planes and GeometryUtility.CalculateFrustumPlanes() and attached them to the camera so that my players can't walk off Screen.
All of that is working fine. The Problem is: when i walk with one player and the second player stays still, the standing player either gets pushed by my walls or gets completely ignored.
Id like for the camera to not be able to move the walls through the player but rather stop.
Comment