Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to give a tension to rope...
#8
(22-10-2021, 09:19 AM)sangku2000 Wrote: cursor.ChangeLength(Vector3.Distance(attachmentStart.transform.position, attachmentEnd.transform.position) * distanceRate);    // rope adjust by rate.

This is new code...! (distanceRate is almost 0.1f)

But collider is not works now. Because of no particle impacted. (you've said)

I wanna make when ropes contact, they become a tangle. (now ropes doesn't impact each other)

Add a ObiParticleRenderer component to your rope, make sure there's particles all along the rope. See:
http://obi.virtualmethodstudio.com/manua...ering.html

Assuming the rope does contain enough particles and there's no large gaps in between them, there's other issues that can prevent accurate collision detection:

- Make sure particle collision constraints are enabled in the solver: http://obi.virtualmethodstudio.com/manua...olver.html
- Make sure collision filters are properly set up. By default, ropes collide with everything, so unless you've changed this or you've reused a blueprint that had incorrect filter settings, it should work fine. For info on collision filters, see:http://obi.virtualmethodstudio.com/manual/6.2/collisions.html
- If your ropes are very tense, then gaps can appear in between particles, allowing ropes to pass trough each other. Using surface collisions can improve this. See: http://obi.virtualmethodstudio.com/manua...sions.html

You mention your distanceRate variable is 0.1, that will make the rope 10% of the distance between its ends and will likely open huge gaps in between particles. I don't think you need such large tension, any real-world rope or chain would snap under such strain. distanceRate is meant to be set to 0.8-0.99, or some value close to 1.

(22-10-2021, 09:19 AM)sangku2000 Wrote: In this situation, I need to recalculate rope's particles or make own particles??

No need to. Ropes will readily collide with each other, as long as they're correctly setup.

(22-10-2021, 09:19 AM)sangku2000 Wrote: Sorry... very very sorry....

No worries! answering questions is what I'm here for Sonrisa
Reply


Messages In This Thread
How to give a tension to rope... - by sangku2000 - 20-10-2021, 03:27 AM
RE: How to give a tension to rope... - by josemendez - 22-10-2021, 09:37 AM