LookAt + VRHelper pointing at feet

this should help a lot with the local setup: Start Contributing to Babylon.js - Babylon.js Documentation

2 Likes

@sebavan back to the other issue… when you do a lookAt (and billboard USE_POSITION :slight_smile:) it aims at the VR camera’s “feet” position without that offset shown at the top of this thread. Is that intended or something odd going on?

It probably comes from the fact that you are locking the rotation on the Y axis in your example ? and 0 is basically the floor ???

I am not the most fluent in VR, @trevordev definitely is :slight_smile:

Camera by essence are just a dot in space so the lookAt will aim at that point

VR cameras (some like WebVR) have a “height” that is added to camera.position so it should work if we target camera.position

That is what I’d expect to @Deltakosh, to get the world matrix and lookAt to that, but that’s not the behavior I’m seeing. :slight_smile:

How can we help? Can you isolate the issue in a simple repro?

I will try to isolate the issue into a playground example, sorry I didn’t in the first place.

1 Like

No worries!

@delaneyj the issue is that position of a vr camera is not the actual position in babylon space (this is an issue with back compat from when vr camera was added)

https://doc.babylonjs.com/how_to/webvr_helper
See the Accessing vr device position and rotation section and try that position instead for the look at

YOU ARE BACK!!! I missed you so much

1 Like