Game Development Community

Bounding Box not in place

by Sisada Ransibrahmanakul · in Artist Corner · 11/17/2007 (2:53 pm) · 2 replies

I found that the bounding box of my DTS is not in place where it is suppose to be , all of DTS that i have made myself! T_T. only one DTS that got right bounding box is OrangeGuy.

in ShowTool Pro also showed that my DTS is not in center of grid but instead it move a little bit forward from the origin point which is also same in TGE that my model is a little forward from bounding box

here is my pic show what is happened in TGE
http://img221.imageshack.us/img221/5720/22972847zm9.jpg

this have happened to my other meshes as well

what i have did wrong here? i have tried move my mesh around and re-export but it doesn't help.

#1
11/17/2007 (3:09 pm)
I believe you are required to create a 'Bounds' object prior to exporting your shapes (a box). This does not have to be necessarily centered on your shape, or sized appropriately. However if this bounding box does not match the extends of your shape you will most likely have collision problems, as this box is used to test possible collisions with your shape. If another shape does not collide with this bounding box, then it assumes that there is no possible collision with your shape.

What you are seeing in game and in ShowTool as the bounding box is the wire frame representation of this 'Bounds' object.

Gabriel Notman
#2
11/17/2007 (11:34 pm)
I think it because my animations.when im use as StaticShape in TGE there is no problem.
problem showed in pic occurred when im using it in my AIPlayer but if im using in AIPlayer without including any dsq (not using exec("~/data/shapes/Dog.cs")) evetything look as it supposed to be. so i assumed that i have did something wrong in my animation and i don't know how to solve it and this happened to my all mesh T_T.

is there a way to avoid this kind of situation?