View Single Post
  #3  
Old 09-14-2010, 04:30 PM
vJimZ vJimZ is offline
Member
 
Join Date: Sep 2010
Location: Stanford University
Posts: 2
Hi Jeff,

Thanks for the reply.

To make the code detect a collision:
male.enable(viz.COLLIDE_NOTIFY)
def onCollide(e):
print "collided"

viz.callback( viz.COLLIDE_BEGIN_EVENT, onCollide)

The console prints "collided" when the character first lands, and plenty of "collided" are printed as the character is running around, but not when buildings are hit. The world is around 30km x 30km x 10km, but I scaled it by a factor of 0.01.

Is there some way to increase the "thickness" of the model to the point that it can detect collisions?
Reply With Quote