Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Moving object along the rope
#4
(21-12-2021, 02:15 PM)sodach1 Wrote: Thanks for your answer!

The actual behaviour I want to achieve is firstly hook an object on the rope and then move it back and forth while it's on rope.
Now I am thinking about attachment process. If I use GetSectionAt, I will need to pass mu to get the position, but it could be attached somewhere in the middle of the rope, so how mu can be calculated, or maybe there's another way of doing this all?

mu ranges from 0 (start of the rope) to 1 (end of the rope). So to attach it in the middle, use 0.5.

If you mean you want the object to "slide" over the rope while driven by physics (imagine a sphere with a hole trough it, and the rope passing trough this hole, like a necklace bead), that's considerably more complex to do. You'll need to write your own rigidbody physics joint to do that, which is outside of the scope of Obi.
Reply


Messages In This Thread
Moving object along the rope - by sodach1 - 20-12-2021, 08:57 PM
RE: Moving object along the rope - by josemendez - 21-12-2021, 08:11 AM
RE: Moving object along the rope - by sodach1 - 21-12-2021, 02:15 PM
RE: Moving object along the rope - by josemendez - 21-12-2021, 02:35 PM