Lightning in Buildings
by Howard Dortch · in Torque Game Engine · 09/27/2004 (11:22 am) · 3 replies
Anyone know of a way to keep lightning from going through buildings?
#2
Could you point me to the "official docs"?
There seems to a bit of a problem in the recursion routine in the lightning.cc file.
bool rayHit = gClientContainer.castRay( start, strikePoint,
(STATIC_COLLISION_MASK | WaterObjectType),
&rayInfo);
This routine sets the hitpoint end at the collision box but the createSplit routine makes one too many splits and therefore seems to extend beyond the collision of the box.
09/27/2004 (12:01 pm)
Portals? you mean *.dif buildings? I am.....Could you point me to the "official docs"?
There seems to a bit of a problem in the recursion routine in the lightning.cc file.
bool rayHit = gClientContainer.castRay( start, strikePoint,
(STATIC_COLLISION_MASK | WaterObjectType),
&rayInfo);
This routine sets the hitpoint end at the collision box but the createSplit routine makes one too many splits and therefore seems to extend beyond the collision of the box.

Torque 3D Owner David Erenger