dbs2000 Posted July 1, 2015 Share Posted July 1, 2015 Is there a way to add arrows in Babylon js?If there are multiple boxes or objects that are connected through lines or tube then can I have arrows on the tubes/lines that show the direction of flow?I am more interested to see if that is possible with tubes as I would also need click behavior on the connections & only tubes (not lines) are allowing me to trap the click behavior. Thanks Quote Link to comment Share on other sites More sharing options...
julien-moreau Posted July 1, 2015 Share Posted July 1, 2015 At line 394, there is an example for arrows : https://github.com/BabylonJS/Editor/blob/6d548fe8768afb0cd0aa0e6801ea1463bcf8a4cb/Core/babylon.editor.transformer.js Quote Link to comment Share on other sites More sharing options...
jerome Posted July 1, 2015 Share Posted July 1, 2015 you can make a tube arrows, simply use a radiusFunction and tell the last part of the tube has a conic shape for instance http://doc.babylonjs.com/page.php?p=24847 please read the tube part Quote Link to comment Share on other sites More sharing options...
julien-moreau Posted July 1, 2015 Share Posted July 1, 2015 Oooooh, yes you should use ribbon Quote Link to comment Share on other sites More sharing options...
dbs2000 Posted July 1, 2015 Author Share Posted July 1, 2015 Thanks Luaacro & Jerome.. I tried both approaches & both work for me... Since, I cannot mark both replied as "Solved" I am marking Jerome as "Solved" as Luaacro also agreed to Jerome's point... Thanks to both of you... 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.