question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Critical regression bug regarding Activate

See original GitHub issue

Hello. We have this little code block that used to work just fine

        public bool UpdateCanMove(NVRHand lastMovementHand)
        {
            var isLastMovementHand = lastMovementHand == this;
            var prio = isLastMovementHand ? 2 : 0;

            if (prio != lastPrio)
            {
                SteamVR_Actions.Movement.Activate(SteamInputSource, prio);
                lastPrio = prio;
            }

            return isLastMovementHand || SteamVR_Actions.Movement.DirectionTouched.GetActive(SteamInputSource);
        }

This code checks if you are already moving using this controller (touchpad locomotion). And if you it upgrades the movement action set to prio 2. This way you can grab your firearm which as prio 0 on its action set and still move with the toughpad even if you have actions bound to touchpad.

Used to work perfect. But now each other frame SteamVR_Actions.Movement.DirectionTouched.GetActive(SteamInputSource); return false and the player stops, in next frame he starts to walk again. Resulting in strobe effect.

I have tried to remove SteamVR_Actions.Movement.Activate(SteamInputSource, prio); which fixes the problem. But now I can not pick up items without stop moving

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
zitecommented, Dec 16, 2019

This has been fixed in SteamVR Beta 1.9.12

0reactions
AndersMalmgrencommented, Dec 8, 2019

This is interesting, in 1.8.2 (the version were problems frist happened) I get the same behaviour as with Vive Wands. in 1.9.7 or in 1.8.21 I get above described behavior.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why Understanding Regression Defects Is Crucial
This quick guide highlights the importance of understanding regression defects and the best practices for preventing regression defects.
Read more >
What is Regression Testing? Definition, Tools, Method, and ...
Regression testing is a type of testing that is done to verify that a code change in the software does not impact the...
Read more >
What is Regression Testing? Test Cases (Example)
Regression Testing means to confirm that a recent program or code change has not adversely affected existing features. In this tutorial ...
Read more >
What is Regression Testing: Complete Guide With Best ...
Therefore, running regression tests of such bugs is crucial to validate integration-based test scenarios.
Read more >
Regression Testing in Agile: Concepts, Challenges and ...
10-30% of test cases only isolate bugs once, or continuously report false negatives or positives, so they are inappropriate for regression testing.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found