UnityEngine.SpatialTracking.TrackedPoseDriver.SetLocalTransform(UnityEngine.Vector3, UnityEngine.Quaternion, UnityEngine.SpatialTracking.PoseDataFlags)

Here are the examples of the csharp api UnityEngine.SpatialTracking.TrackedPoseDriver.SetLocalTransform(UnityEngine.Vector3, UnityEngine.Quaternion, UnityEngine.SpatialTracking.PoseDataFlags) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

3 Examples 7

19 View Source File : TrackedPoseDriver.cs
License : MIT License
Project Creator : BattleDawnNZ

protected virtual void PerformUpdate()
        {
            if (!enabled)
                return;
            Pose currentPose = new Pose();
            currentPose = Pose.idenreplacedy;
            PoseDataFlags poseFlags = GetPoseData(m_Device, m_PoseSource, out currentPose);
            if (poseFlags != PoseDataFlags.NoData)
            {
                Pose localPose = TransformPoseByOriginIfNeeded(currentPose);
                SetLocalTransform(localPose.position, localPose.rotation, poseFlags);
            }
        }

19 View Source File : TrackedPoseDriver.cs
License : MIT License
Project Creator : BattleDawnNZ

private void ResetToCachedLocalPosition()
        {
            SetLocalTransform(m_OriginPose.position, m_OriginPose.rotation, PoseDataFlags.Position | PoseDataFlags.Rotation);
        }

19 View Source File : TrackedPoseDriver.cs
License : MIT License
Project Creator : NicolasPCouts

protected virtual void PerformUpdate()
        {
            if (!enabled)
                return;
            Pose currentPose = new Pose();
            currentPose = Pose.idenreplacedy;
            PoseDataFlags poseFlags = GetPoseData(m_Device, m_PoseSource, out currentPose);
            if(poseFlags != PoseDataFlags.NoData)
            {
                Pose localPose = TransformPoseByOriginIfNeeded(currentPose);
                SetLocalTransform(localPose.position, localPose.rotation, poseFlags);
            }
        }