WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 01-26-2010, 12:34 PM
Moh200jo Moh200jo is offline
Join Date: Feb 2009
Posts: 99
Collision detection

Iíve got a strange problem in the following code:

foot1=viz.add('Foot.ive',  scale = [.05,.05,.05])
foot=viz.add('Foot.ive',  scale = [.05,.05,.05])
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"
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?
Reply With Quote
Old 01-27-2010, 08:39 AM
GiudiceLab GiudiceLab is offline
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

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 12:02 PM
Collision Detection and Nearest Point to Probe xabbu Vizard 2 01-06-2009 04:01 AM
Collision detection with haptic pen mjabon Vizard 3 01-17-2008 07:35 PM
collision detection? Colin Vizard 5 05-16-2007 05:52 PM
Walking avatars --> collision detection? sjroorda Vizard 3 10-13-2005 05:47 AM

All times are GMT -7. The time now is 07:41 PM.

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