Game Development Community

Interior collision crash

by Richard Jones · in Torque Game Engine · 03/18/2002 (10:32 am) · 2 replies

Hi,

Please help!
I'm getting a fatal error on line 484 of engine/core/color.h when colliding with interiors:

inline ColorI::operator ColorF() const
{
const F32 inv255 = 1.0f / 255.0f;

return ColorF(F32(red) * inv255,
F32(green) * inv255,
F32(blue) * inv255,
F32(alpha) * inv255); //***crash here***
}


This happens when I add a new interior to a project and my character touches the new interior. It only seems to happen when the character is on top of the interior (such as a road) rather than a side-on collision.

Its obviously having problems converting a color, but is this an engine bug or am I doing something wrong? It seems to occur in the example project as well as my own projects.

Thanks a lot...

#1
03/18/2002 (10:34 am)
Hi,
try to relight the mission, before you collide with the interior.

Alex
#2
03/18/2002 (10:40 am)
Thanks for the quick response Alex, it seems to work OK now. That must be a World Record. :)