/// <summary> Adds quaternion rotation to use </summary> /// <param name="rotation"> Rotation to apply </param> /// <returns> The RotationQuaternion reference </returns> public MultiRotationValue AddNewRotation(Quaternion quaternion) { if (multiRotation == null) { multiRotation = new MultiRotation(transform); } return(multiRotation.AddNewRotation(quaternion)); }
/// <summary> Removes the given quaternion rotation </summary> /// <param name="quaternion"> The quaternion to remove </param> public void RemoveRotation(MultiRotationValue quaternion) { if (multiRotation == null) { multiRotation = new MultiRotation(transform); } multiRotation.RemoveRotation(quaternion); }
/// <summary> Adds quaternion rotation to use </summary> /// <returns> The RotationQuaternion reference </returns> public MultiRotationValue AddNewRotation() { if (multiRotation == null) { multiRotation = new MultiRotation(transform); } return(multiRotation.AddNewRotation()); }