jerome Posted February 23, 2016 Share Posted February 23, 2016 I'm reading the code here : https://github.com/BabylonJS/Babylon.js/blob/master/src/Cameras/babylon.camera.ts and the API + tutorial docs, but I don't understand how we can set the camera (class Camera instance) direction. Is there a dedicated property that I just missed anywhere ? http://doc.babylonjs.com/classes/2.3/Camera#upvector-vector3-classes-2-3-vector3- http://doc.babylonjs.com/tutorials/05._Cameras Quote Link to comment Share on other sites More sharing options...
jerome Posted February 23, 2016 Author Share Posted February 23, 2016 mmmh.. it seems I'd better use the TargetCamera class maybe : http://doc.babylonjs.com/classes/2.3/TargetCamera Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 23, 2016 Share Posted February 23, 2016 Correct. Camera has no direction but targetCamera can be used and you can set "direction" by setting the target 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.