WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-23-2008, 10:06 AM
rubberpimple rubberpimple is offline
Member
 
Join Date: Jan 2008
Location: Phoenix, Arizona
Posts: 16
Collision questions

Hi,
I'm currently using collision detection in my code, but I'd like to keep the intersecting object from passing though each other. I've read lots of posts but cannot get the right combination of physics, intersection and collision settings. Here's a sample of what I'm doing:
# Some Basics
viz.phys.enable()

viz.collision(1)

# Import a hand object
sensor = viz.add('MonkeyGlove.dls')

myHand = hand.add(sensor,hand.MONKEYGLOVE)
myHand.collidebox()
myHand.enable(viz.DYNAMICS)
myHand.disable(viz.INTERSECTION) myHand.enable(viz.COLLIDE_NOTIFY)

# Import a cylinder object
Cylinder = viz.add('cylinder2.wrl')
Cylinder.collidebox()
Cylinder.enable(viz.DYNAMICS)
Cylinder.disable(viz.INTERSECTION)
Cylinder.enable(viz.COLLIDE_NOTIFY)

I would like both objects to NOT be subject to gravitational forces, but would like for the hand to stop when it contacts the object, and for the object to stay in place as well.

Collisions are detected using the viz.phys.intersectNode(myHand) command

Any help is appreciated!
__________________
David
Reply With Quote
 


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 haptic pen mjabon Vizard 3 01-17-2008 06:35 PM
linked object collision pgagolf Vizard 1 04-19-2007 01:27 PM
Collision with avatars and scene not working JvdBosch Vizard 12 09-14-2006 06:01 PM
collision events trigger Eunice Vizard 1 01-03-2006 10:39 AM
Walking avatars --> collision detection? sjroorda Vizard 3 10-13-2005 04:47 AM


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


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