![]() |
|
|
|
#1
|
|||
|
|||
|
When viewpoint collision is enabled a collision event will be generated when the viewpoint collides with an object. Information about the collision, including position, is available.
Code:
import viz
viz.go()
gallery = viz.add('gallery.ive')
viz.collision(viz.ON)
def onCollision(info):
print 'Collided at point',info.point
viz.callback(viz.COLLISION_EVENT, onCollision)
|
|
#2
|
|||
|
|||
|
Actually, I am using the CaveView. The problem is the the collision callback even only works 50% of the time. I hit a wall, and sometimes it shows up, then the next time it won't. Changing the step size seems to help a bit, but not enough for a user not to get stuck on a regular basis.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Some Problem in navigation | ssaha | Vizard | 3 | 03-24-2010 02:21 PM |
| Vertex shader performance problem | Joran | Vizard | 2 | 11-17-2008 02:29 AM |
| navigation in cave environment | Andy | Vizard | 4 | 03-28-2008 02:32 AM |
| 5DT Data Glove 5 Ultra Problem | bjgold | Vizard | 1 | 08-08-2006 05:08 PM |
| problem with female animations | vmonkey | Vizard | 1 | 10-07-2005 11:36 AM |