24 lines
551 B
C#
24 lines
551 B
C#
//========= Copyright 2016-2023, HTC Corporation. All rights reserved. ===========
|
|
|
|
using HTC.UnityPlugin.Utility;
|
|
using UnityEngine;
|
|
|
|
namespace HTC.UnityPlugin.PoseTracker
|
|
{
|
|
public class PoseTracker : BasePoseTracker
|
|
{
|
|
public Transform target;
|
|
|
|
protected virtual void LateUpdate()
|
|
{
|
|
if (target == null)
|
|
{
|
|
TrackPose(RigidPose.identity, true);
|
|
}
|
|
else
|
|
{
|
|
TrackPose(new RigidPose(target), false);
|
|
}
|
|
}
|
|
}
|
|
} |