Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Stretch and relax rope problem
#4
(17-03-2023, 04:22 PM)berko Wrote: Thanks Jose, you respond very quickly, great support

I would like to access rope spline, to follow path? How can access rope spline?

Hi!

The spline you edit in the path editor is only used to set up the initial rope parameters (length, shape, thickness, etc). It is not used at runtime at all.

At runtime, ropes are made of particles and constraints like all other Obi actors. If you want an object positioned at a specific point in the rope at runtime, you can get an orthonormal frame at any given point in the rope using ObiPathSmoother. GetSectionAt(float mu), passing a floating point value between 0 (start of the rope) and 1 (end of the rope).

The returned struct contains position, normal and binormal vectors, among other info (see the API docs).

kind regards,
Reply


Messages In This Thread
Stretch and relax rope problem - by berko - 16-03-2023, 05:54 PM
RE: Stretch and relax rope problem - by berko - 17-03-2023, 04:22 PM
RE: Stretch and relax rope problem - by josemendez - 17-03-2023, 05:32 PM