#1
|
|||
|
|||
objects in a scene..how to do this
im using the lab.osgb as my main scene. I put obstacle such as crate.osgb. When participant using marker try to walk he pass through the object. How can I make it that if the participant doesn't lift his leg high enough it get stuck behind the object?
|
#2
|
|||
|
|||
I used collide plane but still does it
|
#3
|
|||
|
|||
There's not a built-in function to do this. You could try using a proximity sensor to detect when the user is near the crate. Then get the position of the foot tracker and check to see if it's above the height of the crate. If not, prevent further updates to the viewpoint position.
|
#4
|
|||
|
|||
Hi Jeff,
How do you compare just Y values? Let's say getPosition () returned (1,1,2) and box's dimension is ( 2,2,2) so Y value is smaller..how do you compare just y values? |
#5
|
|||
|
|||
The getPosition() command returns an [x,y,z] list that you access like other Python lists:
Code:
pos = tracker.getPosition() x = pos[0] y = pos[1] z = pos[2] |
Tags |
scene, texture, vizard |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Changing objects in scene | Van | Vizard | 2 | 12-02-2016 02:04 AM |
How to show different objects on different windows from the same scene | Joran | Vizard | 3 | 07-14-2014 03:07 PM |
Copying Scene? | Brett Lindberg | Vizard | 0 | 08-28-2009 11:56 PM |
importing a single WRL with many objects. | giancamati | Vizard | 3 | 12-18-2006 01:13 PM |
Could not find plugin to load objects... | halley | Vizard | 1 | 05-30-2006 11:01 AM |