Class CameraOffsetProvider
Inheritance
CameraOffsetProvider
Syntax
public class CameraOffsetProvider : MonoBehaviour, IProvidesCameraOffset, IFunctionalityProvider
Properties
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
Explicit Interface Implementations
IProvidesCameraOffset.ApplyInverseOffsetToDirection(Vector3)
Declaration
Vector3 IProvidesCameraOffset.ApplyInverseOffsetToDirection(Vector3 direction)
Parameters
Type |
Name |
Description |
Vector3 |
direction |
|
Returns
Implements
IProvidesCameraOffset.ApplyInverseOffsetToPose(Pose)
Apply the inverse of the camera offset to a pose and return the modified pose
Declaration
Pose IProvidesCameraOffset.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
IProvidesCameraOffset.ApplyInverseOffsetToPosition(Vector3)
Apply the inverse of the camera offset to a position and return the modified position
Declaration
Vector3 IProvidesCameraOffset.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
IProvidesCameraOffset.ApplyInverseOffsetToRotation(Quaternion)
Apply the inverse of the camera offset to a rotation and return the modified rotation
Declaration
Quaternion IProvidesCameraOffset.ApplyInverseOffsetToRotation(Quaternion rotation)
Parameters
Type |
Name |
Description |
Quaternion |
rotation |
The rotation to which the offset will be applied
|
Returns
Implements
IProvidesCameraOffset.ApplyOffsetToDirection(Vector3)
Declaration
Vector3 IProvidesCameraOffset.ApplyOffsetToDirection(Vector3 direction)
Parameters
Type |
Name |
Description |
Vector3 |
direction |
|
Returns
Implements
IProvidesCameraOffset.ApplyOffsetToPose(Pose)
Apply the camera offset to a pose and return the modified pose
Declaration
Pose IProvidesCameraOffset.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
IProvidesCameraOffset.ApplyOffsetToPosition(Vector3)
Apply the camera offset to a position and return the modified position
Declaration
Vector3 IProvidesCameraOffset.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
IProvidesCameraOffset.ApplyOffsetToRotation(Quaternion)
Apply the camera offset to a rotation and return the modified rotation
Declaration
Quaternion IProvidesCameraOffset.ApplyOffsetToRotation(Quaternion rotation)
Parameters
Type |
Name |
Description |
Quaternion |
rotation |
The rotation to which the offset will be applied
|
Returns
Implements
IProvidesCameraOffset.CameraOffsetMatrix
Declaration
Matrix4x4 IProvidesCameraOffset.CameraOffsetMatrix { get; }
Returns
Implements
Declaration
void IFunctionalityProvider.ConnectSubscriber(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Implements
Declaration
void IFunctionalityProvider.LoadProvider()
Implements
Declaration
void IFunctionalityProvider.UnloadProvider()
Implements