chicagobob123 Posted April 27, 2017 Share Posted April 27, 2017 I was wondering if anyone has dealt with this? I have part of a crane that is connected with cables. I point to them with blue hand drawn arrows. They are black lines that go up and down. The part pointed to by the yellow arrow is the part that moves up and down. OK so how do you shorten and lengthen that pretend cable? Is there some sort of rubber band thing? Or maybe a tube I can constantly change the end point ? If I create each of the four cables with this TraceRibbon=BABYLON.Mesh.CreateTube("TraceLine",TracePath,1.0,12,null,0,scene,true, BABYLON.Mesh.BILLBOARDMODE_ALL); and alter the end point of the TracePath and call TraceRibbon=BABYLON.Mesh.CreateTube(null,TracePath,1.0,null,null,null,null,null,null,TraceRibbon); is that going to hurt performance? I need to do it to about 200 vehicles. Quote Link to comment Share on other sites More sharing options...
Wingnut Posted April 27, 2017 Share Posted April 27, 2017 Hiya CB! Good to see you again. Could you use a basic textured cylinder, with its pivot point set to one end... and then use a Y-scaling to make the ropes longer/shorter? https://www.babylonjs-playground.com/#12CCCN#1 Pretty good performance on this method, I think. Party on! Update: Version #2... better texture management. gryff 1 Quote Link to comment Share on other sites More sharing options...
gryff Posted April 28, 2017 Share Posted April 28, 2017 @chicagobob123 : agree with @Wingnut about a possible way to go Here is my example made and animated in Blender a couple of hours ago - but by the time I get around to posting it - Wingy has beaten me to it Anyway for posterity: The Lift Uses the same technique - scaling the rope about the pivot point/origin which is set at the top of the rope pieces. In my case the ropes are just stretched cubes. The little white cube is the target for the arcRotate camera exported from Blender. cheers gryff Wingnut 1 Quote Link to comment Share on other sites More sharing options...
chicagobob123 Posted April 29, 2017 Author Share Posted April 29, 2017 Thanks so much for the idea. It's great Wingnut 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.