Game Development Community

Collision Bug

by Phil Carlisle · in Torque Game Engine · 01/02/2002 (2:33 am) · 1 replies

I think there may be a bug in the collision code for vehicles.

I am messing around with flying vehicles right now, put in a test object to fly around with. I wrote some more info (which I'll bring in and post tommorow), but if i recall correctly, its crashing after the vehicle::updatePosition is called to move the vehicle.

It creates some collision spaces for the vehicle (some convex hull style collision bounds), and its crashing in the function mDot because the collision is testing between a vertex list and a vector, but the vertex list is null.

So it seems there's some bug in creating a collision convex hull for some reason.

I'll post more details later when I get my notes from home.

Phil.

#1
01/02/2002 (4:56 am)
You're right there is a problem in the collision function. A workaround is to use the OrthoBoxConvex instead of the ShapeBaseConvex. Nevertheless, I'm currently working on that part, as I need to use the ShapeBaseConvex in order to have precise collision detection.