PDA

View Full Version : Regarding Walking Action of Avatars


SivaKartheek
12-08-2015, 02:47 PM
Hello Everyone,

Good Morning , I am having some problem with walking action. Even though my position and my code is correct the avatar is not walking according to the point that i have given :confused::confused:(avatar is roaming inside the model and after that reaching the final point)
The avatar walks properly for the first time but for the same code and same points the avatars walks in a different way.

can anyone please give me some suggestions how can i resolve this problem



Thank you

Jeff
12-09-2015, 10:32 PM
Depending on the initial orientation of the avatar, the path it takes to reach the final point may vary because of the turns it has to make. Is this what you're describing? You can force the avatar to turn in place and face the destination point before it starts walking. Either use the vizact.turn command or set the turnInPlace argument to True:

walk = vizact.walkTo([0,0,15],turnInPlace=True)

SivaKartheek
12-10-2015, 08:10 AM
Thanks jeff but my question is not abut that.

Actually I arranged 40 pedestrains in a list and then i have a data of 40 avatars in a xml file. Some avatars are moving properly and then reaching destination but some of them are rotating some time and then reaching destination . I don't Understand why they are rotating like that
if you know regarding this , can you please give me an idea why the avatars behaving like that

thankyou