web
web copied to clipboard
Babylon.js 7 (scene.useRightHandedSystem = true) - corrupts the camera state.
In Babylon.js 7 scene.useRightHandedSystem = true - does not work.
inspecting the camera.rotationQuaternion reveals NaN values.
works fine if useRightHandedSystem is false.
to replicate we have been using the github sample: https://github.com/8thwall/web/blob/master/examples/babylonjs/placeground/index.js
- index.html - update babylon version to 7+ (ie, we're using 7.45.0)
- index.js - update BABYLON.SceneLoader.ImportMesh to BABYLON.SceneLoader.ImportMeshAsync (so it works in babylon.js 7)
- run with
useRightHandedSystem = false- works. - run with
useRightHandedSystem = true- fails - inspect the
camera rotationQuaternionwhen using right handed system