WorldViz User Forum motion in vzard
 User Name Remember Me? Password
 Register FAQ Search Today's Posts Mark Forums Read

#1
11-17-2015, 04:47 AM
 SivaKartheek Member Join Date: Oct 2015 Posts: 17
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.setPosition([i, 0, -1])
male.setEuler([0,0,0])
male.state(18)

for j in p1:
female.setPosition([j,0,-1.3])
female.setEuler([0,0,0])
female.state(18)
for i in p:
male1.setPosition([i, 0, -1.6])
male1.setEuler([0,0,0])
male1.state(19)
for j in p1:
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])
walk2 = vizact.walkTo([6.9,0,11])

vizact.onkeydown('m',walkAvatars)
#2
11-20-2015, 02:30 AM
 SivaKartheek Member Join Date: Oct 2015 Posts: 17
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
#3
11-20-2015, 01:15 PM
 Jeff WorldViz Team Member Join Date: Aug 2008 Posts: 2,462
If you want the avatars to follow their own paths, create different walkTo actions with different walk to points.

 Thread Tools Display Modes Rate This Thread Linear Mode Rate This Thread: 5 : Excellent 4 : Good 3 : Average 2 : Bad 1 : Terrible

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is Off Forum Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home Announcements Vizard Precision Position Tracker (PPT) Plug-in development

 Similar Threads Thread Thread Starter Forum Replies Last Post lafortuj Precision Position Tracker (PPT) 2 07-30-2015 05:21 PM cmeans Vizard 1 04-01-2015 03:59 AM hxphan Precision Position Tracker (PPT) 3 02-22-2011 11:01 AM driechers Vizard 2 11-09-2010 03:51 PM EnvisMJ Vizard 1 10-01-2009 04:21 PM

All times are GMT -7. The time now is 10:13 PM.

 Contact Us - WorldViz Home - Archive - Top