Sign in to follow this  
dsman

Collision and movement restriction in webVR?

Recommended Posts

For the normal camera, we can have bounding mesh which has collision enabled and that way we can restrict camera movement to the certain area.

But the WebVR camera is free and doesn't respect the collision, So how to restrict the movement of the user in the model?  

Note: This is not about Room Scale and guardian system. This is about restricting camera movement including teleportation to a certain area inside VR. 

 

Share this post


Link to post
Share on other sites

You can restrict teleportation to a set of meshes by specifying the name of the floor mesh or a list of meshes:

addTeleportation() has a parameter vrTeleportationOptions
https://github.com/BabylonJS/Babylon.js/blob/master/src/Cameras/VR/babylon.vrExperienceHelper.ts#L670

You can add/remove meshes on the fly with addFloorMesh(mesh) and removeFloorMesh(mesh).

What about attaching (parenting) a bounded mesh to the camera to restrict movement of the user?

Share this post


Link to post
Share on other sites

@brianzinn 

We have our own implementation of teleportation etc and not using vrExperienceHelper. (We did it before vrExperienceHelper was introduced). 

We could do same in our implementation (having floor meshes or teleportation enabled meshes) but the problem is we have secondary navigation which works with joystick and that can't be limited that way. 

Can't ellipsoid based camera collision on webVRCamera be possible like it does in free camera?  

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.