motion in vzard
Dear all
Good Morning , I have created a 40 people and i gave the walk action but all people are not moving only 4 people are moving . The code has given below and can anyone please help me how can i rectify this problem p = [5.1,5.3,5.5,5.7,5.9, 4.1,4.3,4.5,4.7,4.9 ] p1 = [ 4, 4.2,4.4,4.6,4.8,5,5.2,5.4,5.6,5.8,6] for i in p: male = viz.addAvatar('vcc_male.cfg') male.setPosition([i, 0, -1]) male.setEuler([0,0,0]) male.state(18) for j in p1: female = viz.addAvatar('vcc_female.cfg') female.setPosition([j,0,-1.3]) female.setEuler([0,0,0]) female.state(18) for i in p: male1 = viz.addAvatar('vcc_male2.cfg') male1.setPosition([i, 0, -1.6]) male1.setEuler([0,0,0]) male1.state(19) for j in p1: female1 = viz.addAvatar('vcc_female.cfg') female1.setPosition([j,0,-1.9]) female1.setEuler([0,0,0]) female1.state(20) ##addng the walking action to the pedestrains def walkAvatars(): walk1 = vizact.walkTo([3, 0,11]) vizact.ontimer2(10,0,male2.addAction,walk1) vizact.ontimer2(5,0,female1.addAction,walk1) walk2 = vizact.walkTo([6.9,0,11]) male.addAction(walk1) male1.addAction(walk2) female1.addAction(walk1) female.addAction(walk2) vizact.onkeydown('m',walkAvatars) |
Hello everyone,
I found the issue but I had new problem now is that all the avatars are moving simultaneously, is there a way that i can give my own trajectories for the avatars to move. If so where can i find the information for tutorial Any help is highly appreciated Thank you all in advance |
If you want the avatars to follow their own paths, create different walkTo actions with different walk to points.
|
All times are GMT -7. The time now is 02:07 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC