Problem with BillBoard+VR

Hi there,

I don’t know if it’s me but when I enable billBoardMode with vr, the rotation is inverted.
Look at there :

Pinging @trevordev

I believe this is the designed behavior of billboard as it will make the object always face the inverse of the cameras forward direction. This causes issues when objects are not in the center of the camera as you will see it rotate not flat to the camera. I would recommend calling lookAt instead

1 Like

Yeah, but how to get the direction where we are looking at ? I want to use the getMatrixView but I don’t really understand the values of the 4x4 matrix. @trevordev Or maybe its the projectionMatrix ? To have the mesh in front of me .

Does this playground work for you? (see line 54)

1 Like