playMaker

Author Topic: Look through wall with camera  (Read 1218 times)

coxy17

  • Beta Group
  • Sr. Member
  • *
  • Posts: 355
Look through wall with camera
« on: May 23, 2014, 03:50:19 AM »
Hi

I have a camera following my player (attached a screenshot showing setup). I have the camera as a child of a GameObject and have it update its position.

My game is 3D and the player can walk up a wall and essentially turn itself 90 degrees. As the camera follows it catches the floor causing the view to be blocked for a couple of seconds. Depending on how fast you walk.

How can i prevent this?

I have a Trigger which i could use. But not sure as to the best approach.

Using Layers?
Using Colliders?
Using Trigger to freeze camera for few seconds?

thanks

Nick