private void OnPositionUpdated(object sender, PositionTrackerEventArgs e) { if (!IsEnabled) { return; } var temp = NormalizeVectorToAxis(e.NewPosition); var change = temp - CurrentPosition; if (change.Magnitude >= MinDistance) { ApplyPositionUpdate(_Tracker.Hand, change, e.Velocity); if (!IsContinuous) { CurrentPosition = temp; } } }
private void OnPositionUpdated(object sender, PositionTrackerEventArgs e) { if (!IsEnabled) return; var temp = NormalizeVectorToAxis(e.NewPosition); var change = temp - CurrentPosition; if (change.Magnitude >= MinDistance) { ApplyPositionUpdate(_Tracker.Hand, change, e.Velocity); if (!IsContinuous) CurrentPosition = temp; } }