Пример #1
0
    public virtual void OnNewPoses()
    {
        var deviceIndex = m_viveRole.GetDeviceIndex();

        if (VRModule.IsValidDeviceIndex(deviceIndex))
        {
            m_staticExCamPose = VivePose.GetPose(deviceIndex);
        }

        if (isQuadViewActive)
        {
            Pose.SetPose(transform, m_staticExCamPose, m_origin);
        }
    }
Пример #2
0
 protected void TrackPose(Pose pose, Transform origin = null)
 {
     ModifyPose(ref pose, origin);
     Pose.SetPose(transform, pose, origin);
 }
 protected void TrackPose(Pose pose, Transform origin = null)
 {
     pose = pose * new Pose(posOffset, Quaternion.Euler(rotOffset));
     ModifyPose(ref pose, origin);
     Pose.SetPose(transform, pose, origin);
 }