How to setup camera behavior
The Untold Engine provides several types of camera, such as a First Person Camera, Third Person Camera and a Basic Follow Camera.
Third Person Camera
To implement a Third Person Camera, you need to create Camera of type U4DEngine::U4DCameraThirdPerson (line 1) and set its parameters using the method U4DEngine::U4DCameraThirdPerson::setParameters() as shown in line 2.
The parameters determine the offset position between the camera and the target 3D model. Once the Camera Type has been created, you attach the behavior to the Camera object as shown in line 3.
The Untold Engine will create a Third Person camera as shown below:
First Person Camera
To implement a First Person Camera, you need to create Camera of type U4DEngine::U4DCameraFirstPerson (line 1) and set its parameters using the method U4DEngine::U4DCameraFirstPerson::setParameters() as shown in line 2. The parameters determine the offset position between the camera and the target 3D model.
Once the Camera Type has been created, you attach the behavior to the Camera object as shown in line 3.
Note that the z-offset position represents the z-axis distance in front of the target 3D model.
The Untold Engine will create a First Person camera as shown below:
Basic Follow
To implement a Third Person Camera, you need to create Camera of type U4DEngine::U4DCameraBasicFollow (line 1) and set its parameters using the method U4DEngine::U4DCameraBasicFollow::setParameters() as shown in line 2. The parameters determine the offset position between the camera and the target 3D model.
Once the Camera Type has been created, you attach the behavior to the Camera object as shown in line 3.
Note that the Basic Follow Camera does not rotate whenever the target 3D model rotates. It only follows it across the screen.
The Untold Engine will create a Basic Follow camera as shown below:
Last updated