I am trying to find a way to detect when my moving Game Object reaches a new ‘waypoint’ along the given path when I call ‘itween.MoveTo()’.
Is there to detect this? Thanks in advance!
I am trying to find a way to detect when my moving Game Object reaches a new ‘waypoint’ along the given path when I call ‘itween.MoveTo()’.
Is there to detect this? Thanks in advance!
a trigger?
Is there a trigger I can call to find out if the Game Object is following a new waypoint along the path? That would be good.
I am looking through the iTween script, kind of messy to me, I can’t seem pinpoint where it switches waypoints.
i am not sure what the term way point means.
There doesn’t seem to be any built in functionality in iTween for detecting what indicy of the path you are currently on. You could however write a wrapper for iTween to do something like pathTo. You could write a hash parameter for it like onWaypoint, onWaypointTarget, onWaypointParams. Everytime your wrapper gets an on complete it calls onWaypoint() and increments the waypoint indicy.