WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   "viz.collision(viz.ON)" PROBLEM (https://forum.worldviz.com/showthread.php?t=2020)

Chrissy2009 05-10-2009 01:10 PM

"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.

Jeff 05-10-2009 03:13 PM

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)


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

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