Thread: Collision?
View Single Post
  #4  
Old 07-10-2007, 02:19 PM
mjabon mjabon is offline
Member
 
Join Date: Jul 2007
Posts: 63
Quote:
Originally Posted by farshizzo View Post
Hi,

I don't think OpenHaptics supports arbitray shapes for the pen, it can only be a point. You can use Vizard collision routines to detect when the two objects are touching and manually apply a force to the haptic pen. Take a look at the viz.phys.intersectNode command for detecting collisions. For applying forces to the haptics pen take a look at the downloads page under "Hardware Support". There is a "Haptic Effects" download. It contains some example of using certain haptic effects, which includes applying a constant force. You DO NOT need the modified hd.dlm/hd.py plugin that is included with the zip file, it is only for Vizard 2.5.
Hi. I just tried this but the haptic pen stops working when I add in the collision code. I added a collsion mesh to the box with holes and capsules around each screw. I added a calback where when a screw hits the box the box should turn red for now. (debugging). I disabled dynamics on the screws so they don't fall off the screen. However, the haptic pen is stuck. I see the marker but it doesn't follow the haptic pen. Can I have both a collision callback and use the haptic pen callbacks at the same time?
Reply With Quote