WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-28-2014, 12:37 PM
roobert roobert is offline
Member
 
Join Date: May 2014
Location: Pachuca, Hidalgo, México
Posts: 34
Send a message via Skype™ to roobert
Exclamation Collide

as I can generate an action after the collision of two models

mod1=viz.add('ball.wrl')
mod1.collideMesh()

mod2=viz.add('ball.wrl')
mod2.collideMesh()

if mod1 collide with mod2:
print "collision exists"
Reply With Quote
  #2  
Old 07-28-2014, 09:26 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
The Callbacks and Complex Shapes tutorial shows how to handle collision events when using physics. In the callback function for the collision event you can call the action.
Reply With Quote
Reply

Tags
collide

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
collide 7up Vizard 2 10-31-2010 06:35 PM
Collision problem Dave Vizard 2 09-16-2010 04:25 AM
Collide mesh on child objects Enlil Vizard 1 08-31-2010 05:52 PM
Collide Surface Problem Boerske Vizard 0 10-05-2009 12:14 PM
Registering 2 objects to show the collide djones1010 Vizard 1 03-25-2009 12:35 PM


All times are GMT -7. The time now is 01:31 AM.


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