Game Development Community

SetHidden fix (player object)

by Andreas Johansen · in Torque Game Engine · 10/04/2007 (8:15 am) · 0 replies

If you use set a Player object or any object derived from it like AIPlayer to hidden in the engine, the engine will crash due to it still doing collision checking on the hidden objects.

Simple fix I found was adding this to the processTick function in the Player.cc file;

void Player::processTick(const Move* move)
{
// If this object is hidden, return
if (isHidden())
return;

(...)
}


Hope this helps anyone having problems with the hidden feature.