Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  ObiPathSmoother needd for chain renderer
#3
(03-10-2023, 06:57 AM)josemendez Wrote: Hi!

Chains aren't smoothed because links in a chain are completely rigid.

You can use rope.GetElementAt(float mu, out elementMu) to retrieve an element at a normalized point in the rope, just like you do with GetSectionAt. You use it like this:

Code:
var elm = rope.GetElementAt(0.5f, out float elementMu);
var position = Vector3.Lerp(rope.solver.positions[elm.particle1], rope.solver.positions[elm.particle2], elementMu);

kind regards,


Thanks, this worked Sonrisa
Reply


Messages In This Thread
RE: ObiPathSmoother needd for chain renderer - by lacasrac - 03-10-2023, 08:54 AM