- Home /
Question by
ElektroWings · Dec 21, 2016 at 07:32 AM ·
cameracollisionlayermask
Little Layer Problem with Camera Collision
Hi, I don't know english very well but I'm gonna try explain my problem, I get an english tutorial to do Camera Collision(with the wall, etc...)I don't know what is happening exactly, but look:
some seconds latter...
I put in camera's raycast the specific layers mask, but when it collide with the terrain get all colliders of the world.
In the water have a box collider and when I collide the camera in the ground this goes automatically to the player but the box isn't in the layer mask of camera raycast
this is the script, help me pleeeeeeeease: https://www.dropbox.com/s/8xvyseiytm1du23/CameraController.cs?dl=0
sem-titulo1.png
(344.3 kB)
sem-titulo.png
(296.3 kB)
Comment