DigitalHilsone Posted June 19, 2015 Share Posted June 19, 2015 Greetings to all.I go straight to the point - I can not make the turn the ship according to the direction of flight. There is a lack of experience and knowledge. Please help.I laid out a project on their own domain and put the source code. Thanks in advance. And finally the question - who can help with the project by writing tips? Also, I can tell you about all those interested in the project through private messages. iiceman 1 Quote Link to comment Share on other sites More sharing options...
Wingnut Posted June 20, 2015 Share Posted June 20, 2015 Beautiful scene, DH! Now I better understand your quest. Yeah, we can pretend plane or splane is our ground, and get click coords from that. (getGroundPosition would become getPlanePosition) Yep, I think .lookAt will work for you... after some tweaking. Nice stars. A plane of stars, a second "star plane", and particles... real nice. http://digitalhilsone.pw/scenes/system.js Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 20, 2015 Share Posted June 20, 2015 Can you provide just a simple PR so we can work together on it. Trying to understand your ask: you have this ship and you want it to face a given direction right? SO options for you:- use mesh.looktAt- seems like your game is seen from the top so perhaps a simple rotation.X is enough? Quote Link to comment Share on other sites More sharing options...
Temechon Posted June 21, 2015 Share Posted June 21, 2015 Is this post iiceman did relevant to your problem ? http://www.html5gamedevs.com/topic/14300-rotating-items/?p=86678 Direct link to the playground: http://playground.babylonjs.com/#Z3UOX#8 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.