Hello,
I would like to have an avatar walk over a sequence of points. I have a network of waypoints, which are connected, and a have an algorithm that finds a path from Begin to End. That path is sent to the function walkRoute(self,avatar,route)
I have the following code:
Code:
def walkRoute(self,avatar,route):
...
for point in route:
actions.append(vizact.walkTo(point.x,0,point.z)
avatar.addAction(vizact.sequence(actions))
This code allows the avatar to walkto the points on the route, but the problem that I come across with now is that the avatar resets its walking animation (obviously, since they are independent), but I want to have the animation from walking from A to B being "remembered" for the next walkTo from B to C. How can I achieve that? Should animationpaths be the answer, and if so, how can I connect that with walkactions?