Game Development Community

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?

#1
09/27/2004 (11:38 am)
Use portals, take a look at the official docs
#2
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.
#3
09/27/2004 (2:19 pm)
www.garagegames.com/images/site/toolbar_torque_documentatio.gif

I'm not sure how to solve your problem, but here's the docs link.