Game Development Community

Collision mesh problem / warning

by Brian Wells · in Torque Game Engine · 02/25/2005 (9:47 am) · 4 replies

This is a console error we are getting regarding a shape:

Warning: shape game/data/shapes/ships/g_bship/g_bship.dts collision detail 0 (Collision-1) bounds exceed that of shape.

Is this meaning that the collision box is bigger than the shape, and if so, why would that require a warning? Is it a bad thing?

#1
02/28/2005 (5:46 pm)
I've tracked this back to shape->bounds (aka mObjBox) in ShapeBase->preload() but it doesn't seem to be calculated from the "bounds" of the objects as I see them.

Can anyone explain further?
#2
02/28/2005 (6:50 pm)
Well, it seems as though some of the objects GG did for Torque even give this warning. It doesn't seem a problem, if the shape is working alright.
#3
02/28/2005 (7:27 pm)
The collision box is outside the model shape. Is it bad? Shouldn't be. I can't think of any reason it would cause a problem as long as we are only talking about a slight protrusion of the box. I'm pretty sure the reason that is there is just to let you know that you MAY have a potential problem to consider. After all, if your col-box was a meter away from your model, the results would be less than desirable for sure. But since you cannot see the col-boxes in the game, a script warning is about the only thing that could alert you to the problem.
#4
10/25/2005 (12:27 pm)
If someone finds some info on this I would be interested to know. I made a model with blender3d and torque gives me that same warning. I'm curious. :) Doesn't seem to affect the game though.