WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1  
Old 01-15-2008, 09:15 PM
mjabon mjabon is offline
Member
 
Join Date: Jul 2007
Posts: 63
Collision detection with haptic pen

Hello. I can get collision detection to work on normal objects, but when I try to use it with the haptic pen it does not trigger the event on collision.

I try to just make collide spheres on both a box and on the pen's marker. However, when I move the marker with the pen such that it touches the box I get no collision event. Why is this? How can I detect the collision of the pen with an object? Do I have to just use the haptic pen's touch objects?

Thanks!
Reply With Quote
  #2  
Old 01-16-2008, 04:16 PM
mjabon mjabon is offline
Member
 
Join Date: Jul 2007
Posts: 63
For reference I have included the latest version of the script. I am now trying to simply query the touch objects of the haptic pen. However, the balls are not showing up as being touched.
Attached Files
File Type: txt DirtRemoval3.txt (10.7 KB, 3035 views)
Reply With Quote
  #3  
Old 01-17-2008, 06:01 PM
mjabon mjabon is offline
Member
 
Join Date: Jul 2007
Posts: 63
I solved the problem using a work around, but I am still interested in knowing if collision detection can work with the haptic pen. I cannot get it to work at all. If I set collision detection to work on both the pen's marker and an object in the world even when I touch the object I get no collision event triggered.
Reply With Quote
  #4  
Old 01-17-2008, 07:35 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Can you post the original code you were using that did not work? I am not clear on what you mean by "collision detection". Are you referring to the physics collide events?
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
collision detection? Colin Vizard 5 05-16-2007 05:52 PM
Collision detection between objects hotspur1 Vizard 4 12-05-2006 12:17 PM
problem with collision detection paulpars Vizard 6 06-09-2006 07:03 PM
Walking avatars --> collision detection? sjroorda Vizard 3 10-13-2005 05:47 AM
Collision Detection for Hierarchies of Objects vjosh Vizard 1 04-15-2005 06:46 PM


All times are GMT -7. The time now is 06:56 AM.


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