From 00bc0224ce275beb493caa8690d994c84af5f7ca Mon Sep 17 00:00:00 2001 From: spatialfree Date: Sun, 2 Oct 2022 08:42:45 -0400 Subject: [PATCH] check if isTracking --- app/dofs/stretch-cursor/wave/WaveCursor.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/dofs/stretch-cursor/wave/WaveCursor.cs b/app/dofs/stretch-cursor/wave/WaveCursor.cs index 9956518..d0093a6 100644 --- a/app/dofs/stretch-cursor/wave/WaveCursor.cs +++ b/app/dofs/stretch-cursor/wave/WaveCursor.cs @@ -59,7 +59,10 @@ class WaveCursor : dof { } 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( hand.palm.orientation, PullRequest.Delta(localPad.Normalized, oldLocalPad.Normalized)