WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 11-09-2010, 10:36 AM
jassel41 jassel41 is offline
Member
 
Join Date: Nov 2009
Posts: 24
Collision Exception

Hi,

I was wondering if there was a way to allow collision with an object while monitoring it for the rest.

For example, in the Getting Your Feet Wet tutorial, the projector light is an object and if collision is on then the view cannot go through the light source. I want to set it up so that the view can travel through only the light but not the other objects.

I tried having a collision event and it checks to see if the collided object is the light source then it turns off collision, any other object collision is turned back on. The problem here is that if the user tried to exit the room next to the light source they would be able to travel through the wall.

Any suggestions?

Thank you in advance,
Jassel41
Reply With Quote
  #2  
Old 11-09-2010, 02:00 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
You can disable collision detection for individual models:
Code:
import viz
viz.go()

viz.collision(viz.ON)

court = viz.add('court.ive')

box = viz.add('box.wrl',pos = [0,1.5,5])
box.disable(viz.INTERSECTION)
Reply With Quote
  #3  
Old 11-09-2010, 05:08 PM
jassel41 jassel41 is offline
Member
 
Join Date: Nov 2009
Posts: 24
Oh that is perfect, thank you so much!
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 and avatar animation shahramy Vizard 2 10-26-2010 11:47 PM
Collision notifications CarlosRamos Vizard 3 05-25-2010 02:33 PM
physics engine exception ad_astra Vizard 3 03-25-2009 11:31 AM
Collision with child nodes rubberpimple Vizard 4 09-17-2008 04:27 PM
Collision detection with haptic pen mjabon Vizard 3 01-17-2008 06:35 PM


All times are GMT -7. The time now is 05:02 AM.


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