 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Art Guest
|
Posted: Mon Aug 18, 2003 8:37 pm Post subject: navigating through virtual room and bounds |
|
|
I wrote a Java 3D (1.3.1) applet and i am quite excited about it.
It is a virtual (3d) "room" that i use as an art gallery (look at
[url]http://www.cyberkunst.org/)[/url].
You can wander around the room by mouse-rotate and mouse-zoom- it's
cool!
I still have one problem i cannot solve.
When you use the zoom option, you can travel "through" the walls into
the virtual universe.
I want to lock the viewer inside the room.
I already tried:
bounds = new BoundingSphere(new Point3d(0.0,0.0,0.0), 10);
MouseZoom mouseZoom = new MouseZoom(MouseBehavior.INVERT_INPUT);
mouseZoom.setTransformGroup(vpTrans);
mouseZoom.setSchedulingBounds(bounds);
But this doesn't block the zooming when you reach the wall. Can
anybody make my day?.
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|