• Content Count

  • Joined

  • Last visited

About Detox

  • Rank
  • Birthday 04/20/1991

Contact Methods

  • Website URL

Profile Information

  • Gender
  1. Detox

    Rotation with FreeCamera

    Thank you very much for your fast answer! Somehow it really fixed it! And I also figured out my mistake there. I took a closer look regarding the parameters for scene.pick & createPickingRay at Apparently I made a huge mistake there, lol!
  2. Hello! First of all: I'm new to Babylon.js and looked through the Babylon.JS-Tutorials on Github. But now I'm stuck and don't know why: I looked at the 18 - Drag and Drop Example and instead of moving the Meshes I tried to simply rotate them, that worked fine. But when I change the BABYLON.ArcRotateCamera to BABYLON.FreeCamera it wouldn't rotate the objects in the front anymore, only the one in the back?! On my search for a Solution I found this Thread, where somebody posted this Example (A Modification of the Drag And Drop - Example), there I also replaced the BABYLON.ArcRotateCamera with a BABYLON.FreeCamera. Heres my Modification with the FreeCamera: Playground/#2CEF73 Now if I replace this 5th line of code var camera = new BABYLON.FreeCamera("Camera", new BABYLON.Vector3(10, 10, 10), scene); with this: var camera = new BABYLON.FreeCamera("Camera", new BABYLON.Vector3(10, 10, -10), scene); it works. But why??? How can I modify the code to make it work with the first line of code?