WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #3  
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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 07:58 AM.


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