WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 01-26-2010, 11:34 AM
Moh200jo Moh200jo is offline
Member
 
Join Date: Feb 2009
Posts: 99
Collision detection

Hi
I’ve got a strange problem in the following code:

Code:
foot1=viz.add('Foot.ive',  scale = [.05,.05,.05])
foot=viz.add('Foot.ive',  scale = [.05,.05,.05])
foot1.collideBox(.005,.005,.005)
foot1.disable(viz.DYNAMICS)
foot1.enable(viz.COLLIDE_NOTIFY)
foot.collideBox(.05,.005,.05)
foot.disable(viz.DYNAMICS)
foot.enable(viz.COLLIDE_NOTIFY)
 
def onCollideBegin(e):
  if box in viz.phys.intersectNode(foot1):
   print "Yes you touched the box by foot1"
 if box in viz.phys.intersectNode(foot):
	print "Yes you touched the box by foot1"
viz.callback(viz.COLLIDE_BEGIN_EVENT,onCollideBegin)
The problem is that the collision detection function can detect the collision with foot and could not detect the collision with the other foot
Is there anybody can advice where is my problem?
Thanks,
Moh
Reply With Quote
  #2  
Old 01-27-2010, 07:39 AM
GiudiceLab GiudiceLab is offline
Member
 
Join Date: May 2009
Location: Orono, ME
Posts: 49
Your collide box dimensions with one foot are much smaller than with the other. Could that be the problem?
__________________
Virtual Environments and Multimodal Interaction (VEMI) Lab

This time, it should work...
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 with specific models just alex Vizard 1 02-06-2009 11:02 AM
Collision Detection and Nearest Point to Probe xabbu Vizard 2 01-06-2009 03:01 AM
Collision detection with haptic pen mjabon Vizard 3 01-17-2008 06:35 PM
collision detection? Colin Vizard 5 05-16-2007 04:52 PM
Walking avatars --> collision detection? sjroorda Vizard 3 10-13-2005 04:47 AM


All times are GMT -7. The time now is 11:23 AM.


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