Hi, i am using an empty look at target this has the character controller and a child plane as my character.
A GO_Camera parent and the main camera as the child.
The camera follows the player the camera position 0.0, 0.1, -3.2.
When moving the camera to zoom in.
I need the camera to move to self 0.0, 0.0, 0.0.
I am using Itween move to.
Currently using the "Q" key.
This work great the camera zooms into the position,
My issue is i want to move the camera to this position at stages based on is the wall still in the way.
So maybe using a ray cast from the camera is the wall in the way, yes move the camera, but not all the way, just move in enough so the wall is no longer in the way.
The camera must stop at 0,0,0, this will mean the player is against the wall.
Now the player moves away from the wall i want the camera to move backwards to the max of 0.0, 0.1, -3.2.
I can not see a way to do this without help.
As the plane always faces the camera and does not turn my problem is kinda unique.
I did try using collision zones but feel that ray casting is the correct way?