Class CameraOffsetProvider
Inheritance
CameraOffsetProvider
Syntax
public class CameraOffsetProvider : MonoBehaviour, IProvidesCameraOffset, IFunctionalityProvider
Properties
CameraOffsetMatrix
Declaration
public Matrix4x4 CameraOffsetMatrix { get; }
Property Value
Implements
cameraPositionOffset
Declaration
public Vector3 cameraPositionOffset { get; set; }
Property Value
Implements
cameraScale
Declaration
public float cameraScale { get; set; }
Property Value
Implements
cameraYawOffset
Declaration
public float cameraYawOffset { get; set; }
Property Value
Implements
Methods
ApplyInverseOffsetToDirection(Vector3)
Declaration
public Vector3 ApplyInverseOffsetToDirection(Vector3 direction)
Parameters
Type |
Name |
Description |
Vector3 |
direction |
|
Returns
Implements
ApplyInverseOffsetToPose(Pose)
Apply the inverse of the camera offset to a pose and return the modified pose
Declaration
public Pose ApplyInverseOffsetToPose(Pose pose)
Parameters
Type |
Name |
Description |
Pose |
pose |
The pose to which the offset will be applied
|
Returns
Type |
Description |
Pose |
The modified pose
|
Implements
ApplyInverseOffsetToPosition(Vector3)
Apply the inverse of the camera offset to a position and return the modified position
Declaration
public Vector3 ApplyInverseOffsetToPosition(Vector3 position)
Parameters
Type |
Name |
Description |
Vector3 |
position |
The position to which the offset will be applied
|
Returns
Type |
Description |
Vector3 |
The modified position
|
Implements
ApplyInverseOffsetToRotation(Quaternion)
Apply the inverse of the camera offset to a rotation and return the modified rotation
Declaration
public Quaternion ApplyInverseOffsetToRotation(Quaternion rotation)
Parameters
Type |
Name |
Description |
Quaternion |
rotation |
The rotation to which the offset will be applied
|
Returns
Implements
ApplyOffsetToDirection(Vector3)
Declaration
public Vector3 ApplyOffsetToDirection(Vector3 direction)
Parameters
Type |
Name |
Description |
Vector3 |
direction |
|
Returns
Implements
ApplyOffsetToPose(Pose)
Apply the camera offset to a pose and return the modified pose
Declaration
public Pose ApplyOffsetToPose(Pose pose)
Parameters
Type |
Name |
Description |
Pose |
pose |
The pose to which the offset will be applied
|
Returns
Type |
Description |
Pose |
The modified pose
|
Implements
ApplyOffsetToPosition(Vector3)
Apply the camera offset to a position and return the modified position
Declaration
public Vector3 ApplyOffsetToPosition(Vector3 position)
Parameters
Type |
Name |
Description |
Vector3 |
position |
The position to which the offset will be applied
|
Returns
Type |
Description |
Vector3 |
The modified position
|
Implements
ApplyOffsetToRotation(Quaternion)
Apply the camera offset to a rotation and return the modified rotation
Declaration
public Quaternion ApplyOffsetToRotation(Quaternion rotation)
Parameters
Type |
Name |
Description |
Quaternion |
rotation |
The rotation to which the offset will be applied
|
Returns
Implements
ConnectSubscriber(Object)
Declaration
public void ConnectSubscriber(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Implements
LoadProvider()
Declaration
public void LoadProvider()
Implements
UnloadProvider()
Declaration
public void UnloadProvider()
Implements