HandModel.GetPalmPosition C# (CSharp) Method

GetPalmPosition() public method

public GetPalmPosition ( ) : Vector3
return Vector3
  public Vector3 GetPalmPosition() {
    if (controller_ != null && hand_ != null) {
      return controller_.transform.TransformPoint (hand_.PalmPosition.ToUnityScaled (mirror_z_axis_)) + GetHandOffset ();
    }
    if (palm) {
      return palm.position;
    }
    return Vector3.zero;
  }

Usage Example

Esempio n. 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::GetPalmPosition