![]() |
|
#1
|
|||
|
|||
|
Collision
Hi, This code is trying to not allow the avatar to walk through the court’s wall and balloon.
May my collision statement for avatar is wrong, but this what I have found in tutorials. HTML Code:
import viz
viz.go()
viz.phys.enable()
court= viz.add( 'court.ive' )
court.setPosition(0,0,15)
viz.collision()
balloon=viz.add('balloon.ive')
balloon.setScale(7,7,7)
balloon.setPosition(0,0,8)
avatar=viz.add('vcc_female.cfg')
walk_Forward = vizact.walkTo([0,0,20])
avatar.addAction(walk_Forward)
avatar.collideBox(viz.COLLIDE_NOTIFY)
avatar.disable(viz.DYNAMICS)
Thanks, |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Collision detection with specific models | just alex | Vizard | 1 | 02-06-2009 12:02 PM |
| Collision Detection and Nearest Point to Probe | xabbu | Vizard | 2 | 01-06-2009 04:01 AM |
| Collision with child nodes | rubberpimple | Vizard | 4 | 09-17-2008 05:27 PM |
| Collision detection with haptic pen | mjabon | Vizard | 3 | 01-17-2008 07:35 PM |
| collision events trigger | Eunice | Vizard | 1 | 01-03-2006 11:39 AM |