Method RotateAroundCameraPosition
RotateAroundCameraPosition(Vector3, float)
Rotates the XR origin object around the camera object's position in world space using the provided vector
as the rotation axis. The XR Origin object is rotated by the amount of degrees provided in angleDegrees
.
Declaration
public bool RotateAroundCameraPosition(Vector3 vector, float angleDegrees)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | vector | The axis of the rotation. |
float | angleDegrees | The amount of rotation in degrees. |
Returns
Type | Description |
---|---|
bool | Returns true if the rotation is performed. Otherwise, returns false. |