WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Collision detection with haptic pen (https://forum.worldviz.com/showthread.php?t=1310)

mjabon 01-15-2008 08:15 PM

Collision detection with haptic pen
 
Hello. I can get collision detection to work on normal objects, but when I try to use it with the haptic pen it does not trigger the event on collision.

I try to just make collide spheres on both a box and on the pen's marker. However, when I move the marker with the pen such that it touches the box I get no collision event. Why is this? How can I detect the collision of the pen with an object? Do I have to just use the haptic pen's touch objects?

Thanks!

mjabon 01-16-2008 03:16 PM

1 Attachment(s)
For reference I have included the latest version of the script. I am now trying to simply query the touch objects of the haptic pen. However, the balls are not showing up as being touched.

mjabon 01-17-2008 05:01 PM

I solved the problem using a work around, but I am still interested in knowing if collision detection can work with the haptic pen. I cannot get it to work at all. If I set collision detection to work on both the pen's marker and an object in the world even when I touch the object I get no collision event triggered.

farshizzo 01-17-2008 06:35 PM

Can you post the original code you were using that did not work? I am not clear on what you mean by "collision detection". Are you referring to the physics collide events?


All times are GMT -7. The time now is 01:09 AM.

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