Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Walkable "Floor plan" a little more strict than from Spoke #31

Open
jywarren opened this issue Mar 20, 2024 · 6 comments
Open

Walkable "Floor plan" a little more strict than from Spoke #31

jywarren opened this issue Mar 20, 2024 · 6 comments

Comments

@jywarren
Copy link

I booted up a scene and found that the clearances for walkable floor were a bit more strict - possibly because the "avatar" is larger? Is there a way to relax these? (lol i didn't fit through a doorway).

Thank you!

@jywarren
Copy link
Author

Or alternatively when I run into this problem in Hubs i use the g hotkey to enable fly mode, then collisions are turned off.

@jywarren
Copy link
Author

Found a workaround, so low priority -- i can double-click to portal ahead quickly.

@jywarren
Copy link
Author

Noting the key commands are a little sticky - when i portal ahead, maybe if I haven't released AWDS keys, they get stuck, but pressing them again unsticks them. No big deal but in case others encounter this. TY!

@vincentfretin
Copy link
Member

Please note that some features may not be 100% the same than on hubs because I'm using community maintained aframe components as much as possible.

You can click (not double click) on the floor to move, it's using aframe-cursor-teleport.

Currently the navmesh is using Ada's simple-navmesh-constraint, as in the name, it's simple :D
You may be able to switch the navmesh engine to aframe-extras's nav-mesh component soon, I wrote a comment about that in
networked-aframe/naf-valid-avatars#28 (comment) but I'm not sure if it's better.
We also discussed of another navmesh alternative in c-frame/aframe-extras#441

You can add any shortcut you want in the shortcuts component I wrote in the example that toggle the waypoints with space.
I implemented the "g" shortcut to toggle fly mode on https://allocola.com/
You can add the following code if you want that:

          if (evt.code === "KeyG") {
            this.cameraRig = document.querySelector("#rig");
            if (this.cameraRig.getAttribute("movement-controls").fly) {
              this.cameraRig.setAttribute("movement-controls", "fly", false);
              if (this.cameraRig.hasAttribute("simple-navmesh-constraint")) {
                this.cameraRig.setAttribute("simple-navmesh-constraint", "enabled", true);
              }
            } else {
              this.cameraRig.setAttribute("movement-controls", "fly", true);
              if (this.cameraRig.hasAttribute("simple-navmesh-constraint")) {
                this.cameraRig.setAttribute("simple-navmesh-constraint", "enabled", false);
              }
            }
          }

@vincentfretin
Copy link
Member

evt.code === "KeyG" is good for azerty (French) and qwerty keyboard layout, it's the physical placement of the key on the keyboard. Otherwise letter g is evt.keyCode === 71.
For m shortcut to mute the mic, you definitely want to check the keyCode evt.keyCode === 77 and not the code because on azerty keyboard pressing key m gives code: 'Semicolon'.

I added the g shortcut in 9297b34

@jywarren
Copy link
Author

Thank you!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants