|
|
virtual void | OnEnable () |
| override void | UpdateCamera () |
| | Update the camera and the target follower position.
|
|
virtual void | Awake () |
|
virtual void | Update () |
|
virtual void | FixedUpdate () |
|
virtual void | LateUpdate () |
|
void | UpdateFollowerPosition () |
| | Update the position of the target follower.
|
|
void | UpdateCameraPosition () |
| | Update the position of the camera.
|
|
float | GetDeltaTime () |
| | Get the deltatime based on the cuurent followmode.
|
|
|
Vector2 | sensitivity |
|
Transform | target |
|
Transform | targetFollower |
|
Transform | cameraTransform |
|
Vector3 | offset |
|
FollowMode | followMode |
|
float | followDamping |
|
Vector3 | followSmoothDampVelocity |
|
|
Quaternion | yaw [get] |
| | The rotation of the camera on the y axis.
|
|
Quaternion | pitch [get] |
| | The rotation of the camera on the x axis.
|
|
float | horizontalSensitivity [get, set] |
|
float | verticalSensitivity [get, set] |
|
|
void | OnDisable () |
|
void | GetMovementDir (InputAction.CallbackContext context) |
|
void | SetTargetFollowerRotation () |
| | Update the rotation of the the target follower.
|
| Quaternion | GetNewRotation (Quaternion currentRotation, Quaternion rotationToAdd, Vector3 axis, RotationLimits rotationLimits) |
| | Get the next rotation on the specified axis.
|
| bool | IsWithinAllowedRotation (Quaternion nextRotation, Quaternion minAllowedRotation, Quaternion maxAllowedRotation) |
| | Check wether the next rotation of the camera is within the limits.
|
| Quaternion | GetLimitToBeAt (Quaternion currentRotation, Quaternion minRotation, Quaternion maxRotation, bool wrap) |
| | Get the limit the given rotation should go at.
|
|
|
Quaternion | yawRotation = Quaternion.identity |
|
Quaternion | pitchRotation = Quaternion.identity |
|
RotationLimits | pitchRotationLimits |
|
RotationLimits | yawRotationLimits |
|
InputActionReference | look |
|
Vector2 | lookInputDir |
◆ GetLimitToBeAt()
| Quaternion CameraController.Camera3D.GetLimitToBeAt |
( |
Quaternion | currentRotation, |
|
|
Quaternion | minRotation, |
|
|
Quaternion | maxRotation, |
|
|
bool | wrap ) |
|
private |
Get the limit the given rotation should go at.
- Parameters
-
| currentRotation | th current rotation |
| minRotation | the minimum allowed rotation |
| maxRotation | the maximum allowed rotation |
| wrap | Wether the rotation should stay at the reached limit or go at the opposite limit. |
◆ GetNewRotation()
| Quaternion CameraController.Camera3D.GetNewRotation |
( |
Quaternion | currentRotation, |
|
|
Quaternion | rotationToAdd, |
|
|
Vector3 | axis, |
|
|
RotationLimits | rotationLimits ) |
|
private |
Get the next rotation on the specified axis.
- Parameters
-
| currentRotation | the current rotation |
| rotationToAdd | the ammount of rotation to add |
| axis | the axis of the rotation |
| rotationLimits | the limits of the rotation |
- Returns
- The product of the current rotation * the rotation to add
◆ IsWithinAllowedRotation()
| bool CameraController.Camera3D.IsWithinAllowedRotation |
( |
Quaternion | nextRotation, |
|
|
Quaternion | minAllowedRotation, |
|
|
Quaternion | maxAllowedRotation ) |
|
private |
Check wether the next rotation of the camera is within the limits.
- Parameters
-
| nextRotation | The new rotation of the camera |
| minAllowedRotation | The smallest allowed rotation |
| maxAllowedRotation | The greatest allowed rotation |
- Returns
- True if the next rotation is within the allowed angle, false otherwise
◆ SetRotationLimits()
Set the limits of the yaw and pitch rotation of the target follower.
- Parameters
-
| newYawLimits | |
| newPitchLimits | |
◆ UpdateCamera()
| override void CameraController.Camera3D.UpdateCamera |
( |
| ) |
|
|
protectedvirtual |
The documentation for this class was generated from the following file:
- CameraController/Script/Camera/3DCameras/Camera3D.cs