
How to tell wether a Path finished?
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.
I considered adding a line to the CheckNextTarget
function, but ideally, I would prefer not to modify the realVirtual scripts directly:
Is this a bug? The value should be set somewhere...
Best regards,
Nico
Customer support service by UserEcho
(To make my code work i wait for PathIsActive to change from True to False.)
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.