Method MatchOriginUp
MatchOriginUp(Vector3)
This function will rotate the XR Origin object such that the XR Origin's up vector will match the provided vector.
Declaration
public bool MatchOriginUp(Vector3 destinationUp)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | destinationUp | the vector to which the XR Origin object's up vector will be matched. |
Returns
Type | Description |
---|---|
bool | Returns true if the rotation is performed or the vectors have already been matched. Otherwise, returns false. |