29-04-2020, 08:33 AM
(This post was last modified: 24-06-2020, 05:16 PM by josemendez.)
Yes, use:
normalizedCoord ranges from 0 (start of the rope) to 1 (end of the rope). This method will return a ObiPathFrame struct, that contains rope position, color, thickness and orthonormal frame (tangent, normal, binormal) at that coordinate.
Note that unlike splines, ropes do not consistently define twist along their main axis. Rods do, though.
Code:
rope.GetComponent<ObiPathSmoother>().GetSectionAt(normalizedCoord);
normalizedCoord ranges from 0 (start of the rope) to 1 (end of the rope). This method will return a ObiPathFrame struct, that contains rope position, color, thickness and orthonormal frame (tangent, normal, binormal) at that coordinate.
Note that unlike splines, ropes do not consistently define twist along their main axis. Rods do, though.