Crash when colliding a .dif object
by Frank Bignone · in Torque Game Engine · 03/03/2002 (9:32 am) · 2 replies
The game crashes when colliding .dif object. Here is the bug :
thx
Frank
Point3F TSStaticConvex::support(const VectorF& v) const
{
TSShape::ConvexHullAccelerator* pAccel =
pStatic->mShapeInstance->getShape()->getAccelerator(pStatic->mCollisionDetails[hullId]);
AssertFatal(pAccel != NULL, "Error, no accel!");
F32 currMaxDP = mDot(pAccel->vertexList[0], v);
^^^^^^ -> crash as vertexList = NULL
U32 index = 0;
for (U32 i = 1; i < pAccel->numVerts; i++) {
F32 dp = mDot(pAccel->vertexList[i], v);
if (dp > currMaxDP) {
currMaxDP = dp;
index = i;
}
}
return pAccel->vertexList[index];
}Can you give me some hint, why vertexList is NULL so I can try to solve it ?thx
Frank
About the author
Real programmers don't waste time recompiling; they patch the binary files... ... Real programmers don't waste time patching binary files; they patch memory.
Torque Owner Badguy
possible blame could go to its collision hull as it was never there ..
notice this is the same result of the organics when you hit them with some static shapes such as the vehicle
this is not a problem with the diff..
most likely the shape