![]() |
collision with physics enabled
1 Attachment(s)
Hi there, I have created a simple scene with physics enabled. In my scene I have a few objects; ball.wrl, blueglass.osg, greenwalls.osg
What I want to do is apply some sort of collision to the scene, so that I am able to walk through ‘blueglass’, but not through ‘greenwall’. The ‘ball’ object translates with the viewpoint, so it goes wherever I go, that way, when I walk through the blueglass object in the scene, the ball collides with blueglass and triggers an event (in this case it simply prints a message). I have not been able to find a way to apply collision to ‘greenwall’ to stop me from walking through it – while physics are enabled. :o Any help would be much appreciated Code:
import viz |
You can enabled viewpoint collision detection by using the following code:
Code:
viz.collision(1) Code:
blueglass.disable(viz.INTERSECTION) |
thankyou so much! thats really helped me out.
works perfect :) |
All times are GMT -7. The time now is 10:34 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC