#1
|
|||
|
|||
"viz.collision(viz.ON)" PROBLEM
Hi all,
I want to activate collision detection for the camera and one specific object, so that I'm only able to move the camera inside of a room, and it should not be possible to move it outside. If I use the command: viz.collision(viz.ON) I've got the problem, that the camera always falls at the bottom of the room. If I want to move it up, it automatically falls down. I've also tested it at the gallery.py and included some commands to move the camera up and down. But the problem is the same as in my scene. Therefore I'm looking for a collision detection between to objects. The camera and my room. Thanks for all your ideas. |
#2
|
|||
|
|||
You can turn off gravity on the viewpoint so that when collision detection is on the viewpoint won't drop back to the eyeheight you're using. Take a look at this page in the docs on viewpoint collision and gravity.
http://www.worldviz.com/vizhelp/View...nd_gravity.htm You can also set the eyeheight of the viewpoint using Code:
viz.eyeheight(height) |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Vertex shader performance problem | Joran | Vizard | 2 | 11-17-2008 02:29 AM |
export problem | bazelaisr | Vizard | 2 | 05-28-2008 11:19 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 |
sound problem | alaa | Vizard | 7 | 09-02-2005 02:13 PM |