Path following and event?

Hi there!

I’m trying to figure out how, by following a path, can i configure a event, each time a object across a point on the path? Is there a built-in method, or do I need to check the coordinates of the object myself in the update function?

By the normal moving, i use tween and timeline, and build a route over them. Maby can i use same way for curves/paths? Something like routeTime * steps or something?

I understand that there is a method “onComplete”, but it only works when all path is over.

Thank you for the attention.

You can use the onUpdate config property.