WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 10-06-2011, 11:48 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Sorry, I didn't pay attention to the subject here. In my last post I was referring to collisions regarding the physics engine. When handling viewpoint collision, the event object passed to the callback function has information about the node collided with, the point of contact and the name of the subnode:

http://docs.worldviz.com/vizard/Even...OLLISION_EVENT

The viz.COLLIDE_NOTIFY flag you mentioned is related to collision events with the physics engine, not viewpoint collision. When you enable viewpoint collision all objects will automatically be included. You can disable viewpoint collision for a specific object:
Code:
object.disable(viz.INTERSECTION)
If you have added two different objects, a room and a cube for the door you can check to see if the object is the cube:
Code:
def onCollision(info):
	if info.object == cube:
		#open door
	
viz.callback(viz.COLLISION_EVENT, onCollision)
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Collision problem Dave Vizard 2 09-16-2010 04:25 AM
Freeform view on an animated object problem jaylocco Vizard 2 06-08-2009 08:09 PM
view problem nlfrnassimi Vizard 3 03-11-2009 08:33 PM
problem with stereo mode shivanangel Vizard 3 10-17-2006 09:58 AM
problem with collision detection paulpars Vizard 6 06-09-2006 06:03 PM


All times are GMT -7. The time now is 07:10 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC