lavokad Posted August 2, 2015 Share Posted August 2, 2015 Hi. I've just started playing with babylon.js and one of the things I'm trying to do is set the camera like in Diablo game.So, I edited one example in playground disabling attachControls, and then seting the event handler for click event, so that on every click camera is moved foward by 1. My question is: there is no member called position neither on FreeCamera class, nor on Camera, nor on Node. Where is this property then? Position is one of the parameters for contstructor, but I can't see it as a member/property of camera object/class. So why does this work at all? Also, is would this be the correct way to implement this type of camera (moving it backwards/foward, right/left as the user will move the mouse to the screen edges). Edited playground example Thanks a lot in advance! Quote Link to comment Share on other sites More sharing options...
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.