WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #9  
Old 07-25-2007, 04:24 PM
mjabon mjabon is offline
Member
 
Join Date: Jul 2007
Posts: 63
That's really kind of you. Perhaps the effect I need is already available - basically I am trying to simulate the feeling of pushing a screw into a hole. I created a box with holes in 3dsmax and screws that fit. I made the box have stiffness 1 as well as the screws. I ran into the problem that the haptic pen is only the point - I want the user to feel resistance when the SCREW that the pen is holding is in contact with the box.

My first attempt to solve this was by using collision detection - I thought I could apply a manual force to the pen when I knew the screw and box were colliding. I never succeeded in getting any collision callbacks to work though.

Then I did some math to allow me to know when the screw was touching the box and applied a manual constant force effect to the pen. This worked but was not nice because there was a little jerk when the ce was applied to the pen.

What I really want is the same smooth feeling of resistance you feel when you run the pen tip across the box. I then decided to make it look fake to the user - I hide the pen tip on the back of the screw and put a fake marker on the front of the screw, so then the user feels the right stiffness when the back of the screw hits the box.

This is not terrible, but now I lack the side to side resistance when the screw is in the hole. The screws can't push through the box except over a hole. Yet I want the user to feel the screw is snug in the hole. Right now there is no side to side resistance to keep the screw in the hole. I also don't want the pen to be able to go behind the box and get stuck.

I tried making the box very thick in the z direction, but I still do not get resistance.

Do you have any ideas for creating the effect I want?

Also, is there any command to make the hd pen jump to a certain spot? hd.translate translates the workspace. I want the workspace to stay centered at 000 bu to be able to make the pen tip jump to whatever location I want.

I have attached an old version of the project that uses the constant effect. If you click on a screw you can pick it up and drag it.

Run MOF_Ver1_Demo

Thanks
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 11:28 PM.


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