Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to fallow rope
#2
Simplest way to get a position/orientation along a rope is to use:

Code:
var frame = rope.GetComponent<ObiPathSmoother>().GetSectionAt(value);

You pass a normalized length value as parameter (0 for the start of the rope, 1 for the end, or any value in between) and you get a ObiPathFrame struct that contains position, orientation, color, thickness, and an orthonormal frame (normal, binormal, tangent) at that particular point in the rope.

There's a utility script included that you can try: "ObiRopeAttach". It uses this method to just move an object to a point along the rope.

You can also use raw particle positions if you want, see:
http://obi.virtualmethodstudio.com/tutor...icles.html
Reply


Messages In This Thread
How to fallow rope - by eisen - 25-01-2021, 09:35 PM
RE: How to fallow rope - by josemendez - 26-01-2021, 09:00 AM