hit2501 Posted August 21, 2015 Share Posted August 21, 2015 Hi. Anybody can show me what changes I can do to this example:http://www.babylonjs-playground.com/#RD8NR To make it vertical instead horizontal? Sorry if its a too basic question, I`m still new with babylon.js Thank you very much. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 21, 2015 Share Posted August 21, 2015 Hey! What do you mean by vertical? do you mean something like this?http://www.babylonjs-playground.com/#RD8NR#1 (I moved the camera ) Quote Link to comment Share on other sites More sharing options...
hit2501 Posted August 21, 2015 Author Share Posted August 21, 2015 Yes thank you, something like that but change the camera will not work because I will have other models that must remain static. I need to change it to vertical because it will be a house wall.Can you help me? Quote Link to comment Share on other sites More sharing options...
elkyu Posted August 21, 2015 Share Posted August 21, 2015 you mean turn the mesh vertically ? you can do a mesh.rotation.x (x, y or z, it depends on what direction you want) something like this http://www.babylonjs-playground.com/#RD8NR#2I let you adjust the value as you wish hit2501 1 Quote Link to comment Share on other sites More sharing options...
hit2501 Posted August 21, 2015 Author Share Posted August 21, 2015 Ok, I will try to adapt your solution and let you know, thanks Quote Link to comment Share on other sites More sharing options...
hit2501 Posted August 21, 2015 Author Share Posted August 21, 2015 Thank you elkyu it works for me. One last question, how can I move the cube straight as a line over the ground? Quote Link to comment Share on other sites More sharing options...
elkyu Posted August 22, 2015 Share Posted August 22, 2015 hmm .. I'm not sure of what you want .. something like that ? http://www.babylonjs-playground.com/#RD8NR#4(line 117 - 133) Maybe you want move the blueBox with the mouse , but it is already the case , no ? Quote Link to comment Share on other sites More sharing options...
hit2501 Posted August 22, 2015 Author Share Posted August 22, 2015 You're my savior. Thanks elkyu. elkyu 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.