WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Collide (https://forum.worldviz.com/showthread.php?t=5115)

roobert 07-28-2014 12:37 PM

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"

Jeff 07-28-2014 09:26 PM

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.


All times are GMT -7. The time now is 11:17 PM.

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