Hello Guys , i very very new to unity just started 1 months back but i am addicted to it
, i am at my first game now. What i am trying to achieve is as follows:-
- The game is a simple shoot the target.
- I have a FPS controller
- I am launching a projectile to hit the center of the screen.
- I have 3 camera , 1st is the main camera, 2 is the camera which will follow the projectile until it hit the target, and 3rd is the camera which will show the entire target board.
- Character will not move from the position, but can only look around 360 degrees, to locate the target points.
What i want here is, after i launch the projectile my FPS camera should reset to a position ( empty game object placed at a specific point). So when the Main Camera active again , the user will see the Aim cursor to be reset towards the empty game object. So every time the user is ready to shoot again , he have to aim again.
I used LooAt method but its not worked. What happening is that:
- After the user shoot, the camera 2 is active , but the user still can move the mouse and so the pointer go to any location.
- When the Main Camera is active. LookAt turns the main camera towards the empty object, but not exactly looking at the object.
- If user look upward in the opposite direction, camera just moves to front, but still looking at upward direction. not change the direction to front towards the empty object.
I tried a lots of things but no , luck pardon me for writing a long description , but i guess its needed to explain the scenario
Looking forward to hear from you experts very soon