Closed juho-ylikyla closed 3 years ago
Describe the bug When loading an XKT model, there is the possibility to rotate the model. If you give any rotation parameter to the load function, eg: rotation: [0, 0, 0]
rotation: [0, 0, 0]
the scene.pick with origin and direction breaks.
window.viewer.scene.pick({ pickSurface: true, origin: [somewhere], direction: [0, 0, 10]
It will give a randomly picked entity, seemingly depending on the current camera position.
To Reproduce Steps to reproduce the behavior:
rotation: [0,0,0]
Screen recording
Fixed by https://github.com/xeokit/xeokit-sdk/issues/494
Describe the bug When loading an XKT model, there is the possibility to rotate the model. If you give any rotation parameter to the load function, eg:
rotation: [0, 0, 0]
the scene.pick with origin and direction breaks.
It will give a randomly picked entity, seemingly depending on the current camera position.
To Reproduce Steps to reproduce the behavior:
rotation: [0,0,0]
Screen recording