HandModel.GetPalmRotation C# (CSharp) 메소드

GetPalmRotation() 공개 메소드

public GetPalmRotation ( ) : Quaternion
리턴 Quaternion
  public Quaternion GetPalmRotation() {
    if (controller_ != null && hand_ != null) {
      return controller_.transform.rotation * hand_.Basis.Rotation(mirror_z_axis_);
    }
    if (palm) {
      return palm.rotation;
    }
    return Quaternion.identity;
  }

Usage Example

예제 #1
0
 void updateColorSelectionBar()
 {
     if (hue && hue.activeSelf)
     {
         hue.transform.position = leftHandModel.GetPalmPosition() + leftHandModel.GetPalmNormal() * 0.15f;
         hue.transform.rotation = leftHandModel.GetPalmRotation();
     }
 }
All Usage Examples Of HandModel::GetPalmRotation