/// <summary> /// Creates a new SnapPoint at the exact pose of a given hand. /// Mostly used with Hand-Tracking at Play-Mode /// </summary> /// <param name="puppet">The user controlled hand.</param> /// <returns>The generated SnapPoint.</returns> public SnapPoint AddSnapPoint(HandPuppet puppet) { HandPose rawPose = puppet.TrackedPose(this.transform, true); SnapPoint snapPoint = GenerateSnapPoint(); snapPoint.SetPose(rawPose, this.transform); snapPoint.LoadGhost(ghostProvider); return(snapPoint); }
/// <summary> /// Relay that extracts the current static pose of the hand in the desired coordinates system /// </summary> /// <param name="relativeTo">The object in which coordinates to represent the pose</param> /// <returns>The current static-pose of the ghost hand</returns> public HandPose ReadPose(Transform relativeTo) { return(puppet.TrackedPose(relativeTo, true)); }