Game Development Community

Hitting Collision?

by Bobby Leighton · in Torque 3D Professional · 11/29/2010 (5:02 pm) · 51 replies

Ok I'm working on a zombie shooter game, and I am trying to work out a few things with projectile collision, here is what I want to do:

When projectile hits a certain collision marker I need it to return information about which on it hit, and then execute code based on which one it was.

I already have a test object setup with 9 collision markers setup, and collision is working. I can also get information that the collisions are returning values I just don't know how to separate from one collision box to another. Any help would be greatly appreciated!

Bobby
Page«First 1 2 3 Next»
#41
12/08/2010 (5:30 pm)
Sorry Ill check that out, they shouldnt be
#42
12/08/2010 (6:36 pm)
lol ignore them, I was going down the list of files that I had made and I had included one becasue it was in the original list, before the port(bad!), and the other I honestly don't know why I put it in there, but it doesn't have any changes to it, so you should be set there. Ill send you a copy of the those script in a few minutes as long as I don't confuse somthing there too.
#43
12/08/2010 (7:02 pm)
cool, btw, I'm getting callback on vehicles. nice
#44
12/08/2010 (7:03 pm)
Hmmm, is that from you implamenting what Mr. Todd posted?, I never put that in:O) but if it works Woot!
#45
12/08/2010 (9:58 pm)
no, from what you did, mate ;o)
#46
12/08/2010 (11:49 pm)
Just so you know, If you don't include the Vehicle::castRay function you'll still get a hitbox ID during projectile::onCollision with Vehicles, however it will always be -1 as no actual hitbox checking is done. The RayInfo struct just always sets hitbox to -1 when one's instantiated. Either way if it's doing that much the hitbox resource itself is probably installed correctly.
#47
12/09/2010 (1:37 am)
what he said ;o)
#48
12/09/2010 (4:37 am)
I thought I was somthing like that. So in my final version I will include your vehicle fix just for completeness sake.
#49
12/20/2010 (10:12 pm)
hey Bobby,
how you coming along with this?
#50
12/23/2010 (8:07 pm)
Sorry Christmas and lots of kids, so probably nothing until after the new years:O)
Page«First 1 2 3 Next»