Ejemplo n.º 1
0
    // Called from Script_Trackable after it updates position
    public void UpdatePos(Script_Trackable trackable)
    {
        if (!isTracking)
        {
            return;
        }

        Vector3 myDiff = trackable.fromStartingPos * trackingMultipler;

        transform.position = startPos + myDiff;
    }
Ejemplo n.º 2
0
 // called from Trackable
 public void Setup(Script_Trackable trackable)
 {
     transform.position = origin.position + (trackable.startingPosFromOrigin * trackingMultipler);
     startPos           = transform.position;
     Debug.Log($"Tracker pos: {startPos}");
 }