![]() |
|
#3
|
|||
|
|||
|
Solved
I solved the issue with a simple if-elif statement
Code:
def pedestrian_actions(): ped_position = pedestrian.getPosition() car_position = car.getPosition() distance = vizmat.Distance(ped_position, car_position) runAction = vizact.walkTo( [-12, 0, 3] ) print(distance) if distance > 4: pedestrian.addAction (runAction) elif distance < 2: pedestrian.clearActions() |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| avatar walking backward | sbilleter | Vizard | 1 | 09-18-2015 12:26 PM |
| Walking Animation of Avatar | pradeep | Vizard | 1 | 07-03-2014 04:35 AM |
| How to simulate avatar walking along a slanted surface | Zhi | Vizard | 3 | 11-21-2013 05:27 PM |
| walking of avatar via patriot | Veronika | Vizard | 6 | 10-07-2011 01:33 AM |
| avatar walking over a sequence of points | IGoudt | Vizard | 1 | 10-16-2009 12:22 PM |