juanmajr93 Posted January 11, 2017 Share Posted January 11, 2017 Hi, How can I set initial target to freecamera? Quote Link to comment Share on other sites More sharing options...
adam Posted January 11, 2017 Share Posted January 11, 2017 https://doc.babylonjs.com/tutorials/Creating_a_Basic_Scene setTarget Quote Link to comment Share on other sites More sharing options...
juanmajr93 Posted January 11, 2017 Author Share Posted January 11, 2017 I used this function and It seems that do nothing... Theese are lines of code: var cameraFree = new BABYLON.FreeCamera("freeCam", new BABYLON.Vector3(900, 400, -800), scene); cameraFree.setTarget = new BABYLON.Vector3(50,20,100); Quote Link to comment Share on other sites More sharing options...
adam Posted January 11, 2017 Share Posted January 11, 2017 setTarget is a function: cameraFree.setTarget(new BABYLON.Vector3(50,20,100)); Quote Link to comment Share on other sites More sharing options...
juanmajr93 Posted January 11, 2017 Author Share Posted January 11, 2017 oh!!! THANKS @adam!!! Post closed 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.