Screen Shot 2020-09-02 at 6.30.22 PM.png (896.89 KiB) Viewed 1176 times
When I use the
Camera(NPC,protester-cursor-emoji,3);
Screen Shot 2020-09-02 at 6.31.48 PM.png (152.23 KiB) Viewed 1176 times
All this leads to, I can't see the object because Rotation is the position of my departure cursor, I read the documentation, this shouldn't be happening, the Rotation of the cursor should be replaced by the camera angle!
Re: Camera Angle Rotation
Posted: Wed Sep 02, 2020 1:29 pm
by Tony Li
Hi,
Is NPC a GameObject in the scene or a child of the camera angles GameObject that is assigned to the Dialogue Manager's Camera & Cutscene Settings > Camera Angles?
What is protester-cursor-emoji?
Re: Camera Angle Rotation
Posted: Wed Sep 02, 2020 1:47 pm
by aaajiao
NPC is Camera Angles
protester-cursor-emoji is GameObject in the scene
Re: Camera Angle Rotation
Posted: Wed Sep 02, 2020 2:04 pm
by aaajiao
a short video to explain
Re: Camera Angle Rotation
Posted: Wed Sep 02, 2020 2:06 pm
by Tony Li
If NPC is a child of your Camera Angles, then it is relative to Camera Angles.
Camera(NPC,protester-cursor-emoji,3);
will move the camera to a position that matches the position of protestor-cursor-emoji but is rotated 5.67 degrees around the Y-axis and offset in position by (-10.84, 2.071953, 46.55806).
As shown in the video above, the final shot is transient because it contains 5.67 degrees around the Y-axis. Is there any good way can get the Camera Angle without getting the Rotation position of the Current camera?
Re: Camera Angle Rotation
Posted: Wed Sep 02, 2020 2:26 pm
by Tony Li
Let's take a step back. What do you want to accomplish?
Re: Camera Angle Rotation
Posted: Wed Sep 02, 2020 2:44 pm
by aaajiao
I want to use the camera to see specific objects at specific locations in the scene in dialogue.
Re: Camera Angle Rotation
Posted: Wed Sep 02, 2020 2:47 pm
by Tony Li
Move the NPC GameObject out of your Camera Angles prefab. Put it in the scene as an empty GameObject. (You can keep the Camera component on it to check how it looks while designing, but disable the Camera component before playing.) Make sure it's exactly where you want the camera to end up, including position and rotation. Then use this sequencer command: