Game Development Community

Collision problems

by Hasitha · in Torque Game Engine · 06/07/2009 (2:57 pm) · 5 replies

I'm having a problem regarding collision between a rigid shape and interiors. I have a DTS rigid shape in the shape of a cube, and a couple of semi-complicated interiors. Basically, I can push the cube around with the arrow keys, which applies a force to the cube. However, around the corners of the interiors, the cube will sometimes dip into the interior, get stuck, and then sometimes fall through. It gets really aggravating. Any ideas?

#1
06/08/2009 (6:29 pm)
how you made your dts collision?. Maybe the problem is your interiors isn't convex in the corner
#2
06/09/2009 (7:10 pm)
My DTS shape is a cube, so I just made the collision mesh a cube that was just a little bit larger. Most of my collision problems occurred on the outside of a corner, not on the inside. As far as I know, all the collision problems occurred on convex surfaces.
#3
06/10/2009 (5:47 pm)
which program do you use for make your dts?, in tdn... http://tdn.garagegames.com/wiki/DTS/Getting_Started exist some
tutorials to guide you to make dts and dif...
#4
06/15/2009 (8:51 am)
I use Blender for my DTS and QuArK for my .dif. I've opened up my DTS files in ShowTool and the collision mesh is there and looks perfect.
#5
06/19/2009 (1:07 pm)
I've figured out a solution, although I'm not sure it is the best one. I noticed that a sphere has much better collision, so I subdivided the collision mesh twice, and apparently the additional vertices help the collision checking.