Game Development Community

Collisions for projectiles

by Howard Dortch · in Torque Game Engine · 10/02/2004 (8:47 pm) · 8 replies

I create a simple box in max. I can run into it and jump on it. When I shoot it the projectiles go through it. Whats the trick? I thought collisions would would for both player and projectiles.

#1
10/02/2004 (9:54 pm)
Probably missing a sollision mesh on the box. See the docs.
#2
10/03/2004 (4:04 am)
I assume you mean collision? I can collide with the box my character can run into the box and collide, the character can walk on top of the box, collision box was exported with the box.

Projectiles pass right through the box. why?
#3
10/03/2004 (5:49 am)
There is a LOSCol ( Line of Sight Collision) mesh that is needed for weapon fire to interact with objects.
#4
10/03/2004 (6:35 am)
I did a search on LOS collisions and find nothing, looked through the dts exporter docs and find nothing. Could someone elaborate? I have a collision box around my object now I have to make another collision box around that box? or how does that work?
#5
10/04/2004 (8:38 am)
I may be wrong on this but I believe that if you do not specify an LOSCol mesh then it uses your normal collision mesh for it.

Some things to check are what the object type the box is. If it's not a StaticShape, TSShape, ShapeBase, or Interior then it wont collide with it.
#6
10/04/2004 (8:46 am)
Doesn't work for projectiles tho Robert. Just wondered if we have to do something else to make that work. The box is a TSSTatic type with a collision mesh.
#7
10/06/2004 (2:13 pm)
Here is a related resource that might help
#8
10/10/2004 (2:56 am)
You didn't read through the docs. Its explained simlply HERE

About halfway down the page youll find "Addin Collision to your Shape".

Basically for what you have just make a copy of your collision shape ("COL-1") and rename it "LOSCOL-10"
Then add a corresponding detail marker. called "LOScollision-10".

The rest is explained in the docs.

The engine does default to the Collsion shape for projectiles if LOS collision is missing. If its not working then somthings messed up.

Matt