public void CreateDuplicate() { HandGhost ghost = Instantiate(this, this.transform.parent); ghost.SetPoseVolume(this._snapPoseVolume, this.transform); ghost.transform.SetPositionAndRotation(this.transform.position, this.transform.rotation); }
private HandGhost AddPose(VolumetricPose poseVolume) { HandGhost ghost = Instantiate(handProvider.GetHand(poseVolume.pose.handeness), this.transform); ghost.SetPoseVolume(poseVolume, this.transform); this.ghosts.Add(ghost); return(ghost); }