Quantcast
Channel: Questions in topic: "rope"
Viewing all articles
Browse latest Browse all 194

Making a rope that does not affect its attached objects

$
0
0
I have two GameObjects that I wish to connect visually with a rope that stretches when they are far apart and sags when they are close. However, I don't want these entities to be affected by the rope - in other words, I want the rope to be visual and not physical in the game world. Currently I have a bunch of GameObjects for links in the rope, connected via HingeJoint2Ds. I tried removing the connections to the two attached objects and instead setting the position of the first and last HingeJoint2Ds to their respective entities in my Update() method, but this seems to have imperfect results - when stretched, [links in the rope slide to the center, leaving large gaps on either end.][1] Any suggestions? [1]: https://www.dropbox.com/s/yoylndl6egktuig/Screenshot%202015-03-13%2003.52.04.png?dl=0

Viewing all articles
Browse latest Browse all 194

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>