0
Under review

How to tell wether a Path finished?

Nico 2 weeks ago in realvirtual.io Starter and Professional updated by Support 2 weeks ago 2

Hello,

I am currently working on a script that allows me to program linear movement (7th axis) for an IK robot between IKPaths. The script starts a drive destination after a Boolean is set or when a path has finished. After the linear movement, it either sets a signal or starts another path. Everything is working fine, but to check whether an IKPath has finished, I would like to use something like IKPath.PathIsFinished. However, this value does not seem to be set anywhere, even though it appears in the status bar of the IKPath inspector window.

Image 1311

I considered adding a line to the CheckNextTarget function, but ideally, I would prefer not to modify the realVirtual scripts directly:

Image 1313

Is this a bug? The value should be set somewhere...

Best regards,
Nico

(To make my code work i wait for PathIsActive to change from True to False.)

Under review

Hi Niko, what about using the Signals? You need to create a Signal Gameobject, assign it to SignalEnded and check it like MySignalEnded.Value = true. Maybe it would be also a good idea for the next release to add here event functions so that you could subscribe with your custom methods.

Image 1314