07-12-2022, 06:39 PM
I've been looking at several solutions to connecting something / object to a rope.
I ended up using this:
to move the character to the rope position. But my rope is attached to a boat and I'm getting a lot of jitter, moving forward and back on the rope, think it's because of stretching.
I also Tried LateUpdate, FixedUpdate. But still pops / jitters ups and down the rope.
Would Pin Constraint be more stable?
I couldn't find any code examples.
Maybe because I don't understand how to read the doc correctly - Hahaha!
any ideas welcome Thanks!
I ended up using this:
Code:
pathSmoother = ropeComp.GetComponent<ObiPathSmoother>();
ObiPathFrame section = pathSmoother.GetSectionAt(ropePosition);
m_Character.transform.position = pathSmoother.transform.TransformPoint(section.position);
to move the character to the rope position. But my rope is attached to a boat and I'm getting a lot of jitter, moving forward and back on the rope, think it's because of stretching.
I also Tried LateUpdate, FixedUpdate. But still pops / jitters ups and down the rope.
Would Pin Constraint be more stable?
I couldn't find any code examples.
Maybe because I don't understand how to read the doc correctly - Hahaha!
any ideas welcome Thanks!