I think that jumping in VR and not is probably the same code, but I’m wondering if anyone has “standard jump” code that I could use. A search doesn’t yield a lot on this.
Adding more content from VR city obj => auto collision? sanity check - #25 by saitogroup
“So, here’s my real question though: how do I make it so that I can teleport on top of something? Should I ask this question in another thread? I think that switching between smooth sliding and teleport is actually pretty important for “multi-level environments” (etc.). Can I do this on my own, or is this a babylonjs thing?”
these are kind of distinct questions however:
(1.) I’ve got smooth motion, I’d like to add a jump
(2.) I’ve got teleporting, I’d like to add a “teleport onto mesh” capability
but they are related to the same idea, which is navigating multi-level environments in VR
the XR camera should work just like the free camera. So jumping (i assume you are not expecting the user to actually jump) can be done just like it is done in a free/universal camera.
Same thing goes to multi-level environments. There is a demo with multi-level teleportation in the doc page: WebXR Selected Features | Babylon.js Documentation
1.) OK, I’ll keep trying to find some jump code, or I’ll just try to write it (I was hoping someone would just throw some code at me, lol, but that’s the easy way out). I actually do expect the user to jump in VR. I do a lot of VR flying, so I never get sick; I know there are others out there like me, lol.
2.) Oh! Sorry, I missed the multi-level teleportation. I will look into that, that’s exactly the thing I need. Thank you!
omg it’s so insane and fun: Login • Instagram