WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1  
Old 09-30-2008, 05:58 PM
vNicolef vNicolef is offline
Member
 
Join Date: Sep 2008
Posts: 8
Collision Trouble with Omni Device

Hi there,

I'm currently using a haptic device (the PHANTOM OMNI) and haven't had any problems with it until now. When I set the marker to be a shovel, for example, the shovel twists and moves as I move the haptic device. However, when the shovel runs into another object, only the origin point of the shovel (which is in the middle of the shovel) collides with the object while the handle of the shovel moves freely, without collisions, through the object. How can I enable collisions for the whole shovel? I already tried shovel.collideBox(), but then there was a gravity problem where the shovel would move with the haptic device and fall at the same time. So then I tried shovel.collideBox() and shovel.disable(viz.DYNAMICS). This fixed the gravity problem, but the Shovel handle still won't collide with another object. What should I do?

Thanks,
Nicole
Reply With Quote
  #2  
Old 10-02-2008, 12:32 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
The OpenHaptics plugin will only apply forces to the marker point. Attaching meshes to the marker will not affect the forces applied to the device, it will still be treated as a single point.

If you just want the shovel to not visually go through objects, then you can use a physics spring to link the haptic pen to the shovel. Have a look at the following post for example code, http://www.worldviz.com/forum/showthread.php?t=1570
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Phantom Omni Device Scripts vSuejung Vizard 1 09-17-2008 04:42 PM
Collision with child nodes rubberpimple Vizard 4 09-17-2008 04:27 PM
Collision trouble digitaldarklord Vizard 6 09-16-2008 04:04 PM
Collision detection with haptic pen mjabon Vizard 3 01-17-2008 06:35 PM
Phantom Device Getting Stuck vjosh Vizard 1 05-09-2005 11:16 AM


All times are GMT -7. The time now is 12:21 AM.


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