26-01-2021, 09:00 AM
(This post was last modified: 26-01-2021, 09:00 AM by josemendez.)
Simplest way to get a position/orientation along a rope is to use:
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
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