Game Development Community

How can I make collision box much bigger than the object ?

by MARIA SALAZAR · in Torque Game Engine · 08/06/2008 (9:30 pm) · 3 replies

I have a AI insect but I want the collision box bigger than AI's shape and I don't know this is the right way to do it or not. I try to create LOScol but it is not working in game.

--------
| | <=
| o |
| |
--------

o : my fly
<= : my bullet
dash is the LOScol shape

My LOScol mesh is just a box and It shows the showtool but when I put the AI with LOS in game my bullet goes thru the LOScol.

Thank you

#1
08/06/2008 (10:01 pm)
Actually the col in the player or AI models doesn't work in the game, the player collision is done by the bounding box size set up in the player datablock. You can set it in your AI player datablock, search for:
boundingBox and put the XYZ values there.
you can also change the pickupRadius for the player.

Hope this help :)
#2
08/06/2008 (11:46 pm)
Man... you are so great... thank you so much. That makes my game a lot better.
#3
08/06/2008 (11:49 pm)
The LOScol mesh is used to determine whether the character is in sight, I believe.