We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Switching back to OrbitControl does not work

Home Forums Programming Switching back to OrbitControl does not work

Tagged: , , ,

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #52566
    wishful97
    Participant

    Hello,
    When I export my scene with Orbit camera control it works fine and I can orbit around. Then when I run this command in the browser console, I can fly through the scene:
    v3d.apps[0].controls = new v3d.FlyingControls(v3d.apps[0].camera);
    But when I run below command, I can’t orbit around. Does anybody know why camera controls do not change back to orbit mode?
    v3d.apps[0].controls = new v3d.OrbitControls(v3d.apps[0].camera);

    #52569
    kdv
    Participant

    v3d.apps[0].controls = new v3d.FlyingControls(v3d.apps[0].camera, v3d.apps[0].renderer.domElement);

    v3d.apps[0].controls = new v3d.OrbitControls(v3d.apps[0].camera, v3d.apps[0].renderer.domElement);

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

    #52575
    wishful97
    Participant

    It worked. Thank you very much! :good:

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.