check if isTracking

This commit is contained in:
spatialfree 2022-10-02 08:42:45 -04:00
parent 902120719d
commit 00bc0224ce

View file

@ -59,7 +59,10 @@ class WaveCursor : dof {
} }
Vec3 localPad = mAnchorInv.Transform(pad); Vec3 localPad = mAnchorInv.Transform(pad);
if (Vec3.Distance(pad, anchor) < 0.04f && Time.Totalf > 3f) { // localPad.Length < 0.04f if (Vec3.Distance(pad, anchor) < 0.04f && isTracking) { // localPad.Length < 0.04f
// one of the dirs is 0
// they are the same
//
cursor.orientation = PullRequest.Relative( cursor.orientation = PullRequest.Relative(
hand.palm.orientation, hand.palm.orientation,
PullRequest.Delta(localPad.Normalized, oldLocalPad.Normalized) PullRequest.Delta(localPad.Normalized, oldLocalPad.Normalized)