Game Development Community

Detecting if there is a collision with the bottom of the polygon

by Lynooks · in Torque Game Builder · 07/13/2007 (2:09 pm) · 1 replies

Can someone tell me how to do this? Thanks.

#1
07/13/2007 (2:52 pm)
You might want to use the %contacts, which returns the exact collision points.

function someObject::onCollision(%this, %dstObj, %srcRef, %dstRef, %time, %normal, %contactCount, %contacts)
{
   //your code
}