vishnu Posted March 10, 2018 Share Posted March 10, 2018 Hey all, I am new in babylonJS. how to get free camera target position and direction. how to handle it. i have readed the free camera properties, but no use for me. https://www.babylonjs-playground.com/#2GXKNW#22 Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted March 12, 2018 Share Posted March 12, 2018 hi @vishnu welcome to BJS Area https://www.babylonjs-playground.com/#2GXKNW#23 https://www.babylonjs-playground.com/#2GXKNW#24 jerome 1 Quote Link to comment Share on other sites More sharing options...
vishnu Posted March 12, 2018 Author Share Posted March 12, 2018 hello @NasimiAsl thanks for your answer. NasimiAsl 1 Quote Link to comment Share on other sites More sharing options...
RaananW Posted March 12, 2018 Share Posted March 12, 2018 Hi, I took @NasimiAsl's wonderful (!) result and used a newly introduced function (getFrontPosition) to get the target and ray correctly - https://www.babylonjs-playground.com/#2GXKNW#25 . This will also prevent this drag that appears sometimes. jerome and NasimiAsl 1 1 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.