View Single Post
  #6  
Old 09-11-2006, 03:38 PM
pbeeson pbeeson is offline
Member
 
Join Date: Aug 2006
Posts: 31
I'm not using version 3.0. Thus, I don't have collideNone(). Can you provide me help with version 2.5? I've switched to using collidebox instead of collide mesh for the time being to get around this problem, but I'd like a better answer.

In v 2.5, if you do the following for two avatar then later use collidingwith(), sometimes the collisions occur as if the avatars are in state #1 (correct behavior), and sometimes one or both of the avatars provide collision info as if they were still in the idle pose (arms outstreatched). Can't get this to work properly every time.

Code:
def fixmesh(avatar):
   viz.waitframe(10)
   avatar.collidemesh()

avatar=viz.add('Female.cfg')
avatar.state(1)
avatar.visible(viz.ON)
avatar.translate(x,y,theta)
viz.director(fix_mesh,avatar)
Reply With Quote