Game Development Community

AI bounding box

by Simon Fraser University (#0025) · in Torque Game Engine · 12/02/2007 (12:12 pm) · 3 replies

Hello, I am trying to alter the bounding box of one of my player models. I changed
boundingBox = "1.2 1.2 5.0";
in the scripts, which does change the shape of the bounding box in the way I want, but the problem is that this stretches the bounding box ABOVE the model, and I want it to stretch out BELOW the model (to stop it form hitting the ground). Putting a negative number inside the bounding box didn't seem to work

Does anyone know how to shift the bounding box?

Thanks!

#1
12/02/2007 (1:45 pm)
Can't you just change the bounding box in the model? If you can, then just change the bounding box there and set the pivot to where you want the player to collide with the ground.

I dont know if the bounding box can be shifted out of the box (in script or C++).
#2
12/02/2007 (4:53 pm)
Search for ground transform. There's a resource that lets you modify the ground transform of the model. This should help out with what you are doing.