#1
|
|||
|
|||
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 |
#2
|
|||
|
|||
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) |
#3
|
|||
|
|||
Oh that is perfect, thank you so much!
|
Thread Tools | |
Display Modes | Rate This Thread |
|
|
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 |