I’ve been messing with this for a while and can not seem to find out how to do this. The problem is that when i start a MotionControl, it will Always spawn the spatial at the first waypoint and move from there. However, I really need to make the spatial and motion to start at a user-defined waypoint (for example: waypoint 10) and go from there.
Could you help?
Thanks
The only method i can find in
MotionEventthat actually changes the position on the track issetTime(float). Sane values lie between0.0f(0%) andinitialDuration(100%).Each time you add a waypoint to a
MotionPathit will update the underlyingSpline, its total length and the lengths of each segment.Using this information you can calculate the corresponding "time marks" for your waypoints: