fariazz Posted March 25, 2014 Share Posted March 25, 2014 I'm having trouble setting the initial direction of the camera: http://static.pablofarias.com/plane/ The camera always points down when loading the scene. I've changed the camera.direction property but that also changed the location of the camera. I'm using a free camera. Also, the camera can't look up, it can only look down and to the sides.. not sure how to allow it to look up. Any help would be appreciated!! Quote Link to comment Share on other sites More sharing options...
gryff Posted March 25, 2014 Share Posted March 25, 2014 The camera always points down when loading the scene. I've changed the camera.direction property The camera seems to be functioning properly - moves up/down right to left as you move the mouse. Is the rest of the scene set up properly? cheers, gryff Quote Link to comment Share on other sites More sharing options...
gryff Posted March 25, 2014 Share Posted March 25, 2014 Looking at it again, a plane is created vertically (see picture tutorial 02 ). Did you rotate the plane so it lies on the ground?plane.rotation = new BABYLON.Vector3(Math.PI / 2, 0, 0); That may explain why it looks like the camera is pointing in the wrong direction. cheers, gryff Quote Link to comment Share on other sites More sharing options...
fariazz Posted April 17, 2014 Author Share Posted April 17, 2014 Looking at it again, a plane is created vertically (see picture tutorial 02 ). Did you rotate the plane so it lies on the ground?plane.rotation = new BABYLON.Vector3(Math.PI / 2, 0, 0); That may explain why it looks like the camera is pointing in the wrong direction. cheers, gryff Thanks Gryff! I hadn't realized the Y axis pointed upwards. I thought x and y where on the floor and Z was the verical axis. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 17, 2014 Share Posted April 17, 2014 You may use CreateGround instead if you want it horizontally Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.