HandModel.GetPalmRotation C# (CSharp) Méthode

GetPalmRotation() public méthode

public GetPalmRotation ( ) : Quaternion
Résultat 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

Exemple #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