jbaicoianu / janusweb

An in-browser implementation of JanusVR
MIT License
176 stars 52 forks source link

Left thumbstick forward will activate right hand teleport ray #213

Open msub2 opened 3 years ago

msub2 commented 3 years ago

Was just messing around with a super basic scene, as seen here:

<html>

<head>
    <title>Hello World (JanusWeb)</title>
    <meta charset="utf-8">
</head>

<body>
    <!--
        <FireBoxRoom>
            <Assets>
            </Assets>
            <Room>
                <Object id="plane" pos="0 0 0" rotation="-90 0 0" col="green" scale="10 10 1" collision_id="plane" lighting="false" />
            </Room>
        </FireBoxRoom>
    -->
    <script src="https://web.janusvr.com/janusweb.js"></script>
    <script>elation.janusweb.init({ url: document.location.href })</script>
</body>

</html>

and I was testing out what controller interactions were already built in. I saw right hand had teleportation by default on thumbstick forward, so I turned on my left controller to check if there was smooth locomotion. However, instead I saw that it seemed to be interpreting left thumbstick forward as a teleport action from the right controller.

jbaicoianu commented 3 years ago

Thanks for the bug report! Yup, what you observe is currently correct, there's some work needed with the control mapping system to allow binding separate actions for thumbsticks based on controller handedness, currently the event is bound to both but there's no easy way to tell from the event which hand's controller it came from.

For my own reference, and yours if you're interested: