Game Development Community

Projectile Class Containor Collision

by Matt "Mr. Pig" Razza · in Torque Game Engine · 07/28/2007 (12:14 pm) · 1 replies

I'm wondering if anyone can help me get projectile collisions working with TSStatic Objects.

if (getContainer()->castRay(oldPosition, newPosition, csmDynamicCollisionMask | csmStaticCollisionMask, &rInfo) == true)

That code (the default projectile code) will not find TSStatic objects, or objects derived from the TSStatic class. csmStaticCollisionMask does have one of the object enum types that TSStatic shape has...

any ideas?

#1
07/28/2007 (12:37 pm)
Nevermind, there was a problem with the collision mesh I guess - I simplified it and the problem went away.