PDA

View Full Version : making in-world interactions


imperialkat
02-08-2010, 12:16 PM
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 (http://www.worldviz.com/vizhelp/Callbacks_and_Complex_Shapes.htm).