JamesStudent Posted January 17, 2017 Share Posted January 17, 2017 Hi Guys! So i'm starting with babylon a few days ago, so I have one doubt and I don't know how to do it right, so my question is. I have sphere1.position.x = 20; and sphere2.position.y = 30; , and I want create a cylinder that goes to sphere1 position.x to sphere2,position.y, How can I do that? Is it possible ? Something like the photo below. Plz! If someone know how to do it, plz! send a tutorial link Quote Link to comment Share on other sites More sharing options...
jerome Posted January 17, 2017 Share Posted January 17, 2017 http://www.babylonjs-playground.com/#VYM1E#7 Quote Link to comment Share on other sites More sharing options...
iiceman Posted January 17, 2017 Share Posted January 17, 2017 Hi there James, welcome to the forum. jerome already showed you a way how to do it, but I remember there was pretty much the same request a while ago here: Here is a playground from that discussion that shows a way how to do it, too: http://www.babylonjs-playground.com/#1RWE59#12 Quote Link to comment Share on other sites More sharing options...
Wingnut Posted January 17, 2017 Share Posted January 17, 2017 Yeah! There was a cylinderBetweenPoints() func running around, too. http://doc.babylonjs.com/playground?q=cylinderBetweenPoints FUN! Quote Link to comment Share on other sites More sharing options...
JamesStudent Posted January 17, 2017 Author Share Posted January 17, 2017 Thanks Guys. 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.