adam Posted October 19, 2016 Share Posted October 19, 2016 Every now and then I see forum posts asking how to get the forward of the camera or of a mesh. I think I've come up with a simple way to do that with Node.getDirection. Here's a PG demo: http://www.babylonjs-playground.com/#1CSVHO#6 (move the camera to see that the sphere stays in front of it) edit: I added Vector3.Left and Vector3.Right: http://www.babylonjs-playground.com/#1CSVHO#5 moving a mesh forward: http://www.babylonjs-playground.com/#1CSVHO#7 Nabroski, jerome and JackFalcon 3 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 19, 2016 Share Posted October 19, 2016 PR!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Quote Link to comment Share on other sites More sharing options...
adam Posted October 19, 2016 Author Share Posted October 19, 2016 Here is another demo: http://www.babylonjs-playground.com/#I9FKL#4 jerome 1 Quote Link to comment Share on other sites More sharing options...
jerome Posted October 19, 2016 Share Posted October 19, 2016 excellent ! and so useful Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 20, 2016 Share Posted October 20, 2016 The same without the hack as Adam's PR is now in the box: http://www.babylonjs-playground.com/#I9FKL#5 jerome 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.