![]() |
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?
|
I used collide plane but still does it
|
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.
|
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? |
The getPosition() command returns an [x,y,z] list that you access like other Python lists:
Code:
pos = tracker.getPosition() |
All times are GMT -7. The time now is 12:54 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC