コード例 #1
0
 /// <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));
 }
コード例 #2
0
 /// <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);
 }
コード例 #3
0
 /// <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());
 }