PDA

View Full Version : Collision detection with haptic pen


mjabon
01-15-2008, 08:15 PM
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
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?