Skip to content

Babylon.js 7 (scene.useRightHandedSystem = true) - corrupts the camera state. #238

@julapy

Description

@julapy

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 rotationQuaternion when using right handed system

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions