Callback for collision within a scene
by Gavin Beard · in Torque Game Builder · 02/15/2009 (4:38 pm) · 2 replies
Hi all
Is there a callback or function that can be triggered if a collision takes place within a scene? I've tried using scenewindow2d::oncollision() with no luck.
what i'm trying for is a way to perform some whichs with different objects in a scene but only want to do any of the checks if a collision has taken place anywhere within the scene?
thanks in advance
Is there a callback or function that can be triggered if a collision takes place within a scene? I've tried using scenewindow2d::oncollision() with no luck.
what i'm trying for is a way to perform some whichs with different objects in a scene but only want to do any of the checks if a collision has taken place anywhere within the scene?
thanks in advance
Torque Owner Mohamed ElShami
function t2dSceneObject::onCollision(%this, %dstObj, %srcRef, %dstRef, %time, %normal, %contactCount, %contacts)
{
}