WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   making in-world interactions (https://forum.worldviz.com/showthread.php?t=2505)

imperialkat 02-08-2010 12:16 PM

making in-world interactions
 
Lets say I have a moving ball and a tex quad. By turning on collision I can get the ball to bounce off of the quad (basically). Is there any way to make the ball do other things when it comes in contact with the quad? For example, what if I wanted it to pass through the quad but slow down or change color?

farshizzo 02-08-2010 12:40 PM

You can use viz.COLLIDE_BEGIN_EVENT to notify your script when a collision between two objects occurs. You need to enable viz.COLLIDE_NOTIFY on all objects you want to trigger collision events. You can find more information and sample code here.


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

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