Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  how to move object on the rope like spline?
#3
(29-04-2020, 08:33 AM)josemendez Wrote: Yes, use:

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. Rod do, though.

Hello, 

Thanks for answer.

I tried this code but there is no variable of normalizedCoord.

Thanks.

Reply


Messages In This Thread
RE: how to move object on the rope like spline? - by emreaa - 29-04-2020, 10:24 AM