Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rope distance from attached object
#2
(26-09-2017, 04:48 AM)dignifiedweb Wrote: Hi,

I love your rope asset so far! I was wondering, is there a way to get the rope snug up against the collider? I followed along with your youtube tutorial to make a rope attached to a cube, but using all defaults, my cube is a considerable distance away from the rope at runtime. When I add the Pin Constraint (pinned to object) on the bottom rope particle, it automatically adds an offset in the Y access. I noticed, if I drop that Y access down a bit, it brings it closer to the collider. In the tutorial, it also mentioned adjusting the distance in the solver itself, I did that as well, but no impact for some reason. Any ideas what I'm doing wrong?

Here's a screenshot:
[Image: LQqp9Hj.png]

Youtube tutorial I followed

I can also provide you the scene if needed, let me know. If I revert to defaults, it is the same result I have found.

I should note: I pinned the top particle to the top cube instead of pinning in place, which is what was done in the tutorial.

Hi!

This happens because both distance and pin constraints have an opinion on how the rope should look like, and the distance constraints' one is more prevalent.

Look at the bottom of this page:
http://obi.virtualmethodstudio.com/tutor...olver.html

There you can see that it is possible to change the relative importance of constraints, so that pin constraints are applied last and their "opinion" prevails Sonrisa.

In your case, you should draw pin constraints below distance constraints in the ObiSolver's constraint order list. Also increasing the amount of pin constraint iterations will help.

cheers,
Reply


Messages In This Thread
RE: Rope distance from attached object - by josemendez - 26-09-2017, 09:33 AM