Thread: Collision
View Single Post
  #5  
Old 04-09-2009, 05:54 PM
Moh200jo Moh200jo is offline
Member
 
Join Date: Feb 2009
Posts: 99
well, JEFF, I have tried to follow the gallery example in tutorial as well as your advices. the collision works around main-view and all stuff react including avatar. but the avatar responses as an object(like the balloon).(avatar still walking through the wall and balloon)
any help would be appreciated
HTML Code:
import viz

viz.go()
#viz.phys.enable()
court= viz.add( 'court.ive' )
court.setPosition(0,0,15)
viz.collision()
avatar=viz.add('vcc_female.cfg')
#view=viz.MainView
#link=viz.link(view,avatar)
#link.preTrans([0,-1.5,4])
#viz.MainView.collision()

balloons=[]
for i in range (0,4,3):
	balloon=viz.add('balloon.ive')
	balloon.setScale(7,7,7)
	balloon.setPosition(0,0,i+5)
	balloons.append(balloon)

walk_Forward = vizact.walkTo([5,0,15])
avatar.addAction(walk_Forward) 
balloon.collideSphere()
#avatar.disable(viz.COLLISION)
Reply With Quote