- Joined
- Nov 13, 2006
- Messages
- 243
Ok so i created a camera for a 3rd person movement system but when i set the camera to view the region following the unit the Z offset changes and the camera is above the unit.
Any ideas why this happens?
Here you have the datas for the system:
Camera Info
The things that i omited are not relevant or are 0.
Any ideas why this happens?
Here you have the datas for the system:
Camera Info
Code:
Angle - Field of View: 27.7996
Depth of Field - Depth - 8.0
Depth of Field - End - 8.0
Depth of Field - Start - 0.0
Distance: 2.0
Distance Far Clip: 127.4507
Distance Near Clip: 0.0999
Distance Shadow Clip: 75.0
Target Pitch: 8.68
Target Yaw: 90.0
Target Z Offset: 0.0005
-
Camera Test
-
Events
-
Timer - Elapsed time is 15.0 Game Time seconds
-
-
Local Variables
-
Conditions
-
Actions
-
Region - Attach Player 1 View Region to PlayerUnit[0] with offset (Point(0.0, 0.0))
-
Camera - Apply Player 1 Camera for player 1 over 0.0 seconds with Existing Velocity% initial velocity, 10% deceleration, and Include Target
-
Camera - Turn Camera Mouse Rotation On/Off(1, On)
-
Camera - Lock Camera Mouse Relative Mode On/Off(1, On)
-
Camera - Set the camera bounds for (Player group(1)) to Player 1 View Region (Do Not adjust the minimap)
-
Camera - Follow for player 1 (Unit group(PlayerUnit[0])) with the camera and Clear Current Target
-
UI - Hide game UI for (All players)
-
Trigger - Turn Camera Update On
-
Trigger - Turn Update On
-
-
-
Camera Update
-
Events
-
Timer - Every 0.015 seconds of Game Time
-
-
Local Variables
-
CameraBounds = ((Position of PlayerUnit[0]) offset by -0.3 towards ((Camera Yaw of Player(1)) + 90.0) degrees) <Point>
-
-
Conditions
-
Actions
-
Camera - Set the camera bounds for (Player group(1)) to (Region((X of CameraBounds), (Y of CameraBounds), ((X of CameraBounds) + 0.01), ((Y of CameraBounds) + 0.01))) (Do Not adjust the minimap)
-
-
-
Update
-
Events
-
Timer - Every 0.0001 seconds of Game Time
-
-
Local Variables
-
Conditions
-
Actions
-
Unit - Make PlayerUnit[0] face (Camera Yaw of Player(1)) over 0.0 seconds
-
-