Thread: hd in Vizard3.0
View Single Post
  #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