
Anybody know why that is?
Code: Select all
//---------------------------------------------------------------
void LaserBeam::ProcessTick(const Move *move)
{
...
_drawDebug();
...
}
//--------------------------------------------
void LaserBeam::renderObject(...)
{
_drawDebug();
}
//-----------------------------------------------------------------------------------
void LaserBeam::_drawDebug()
{
...
VectorF _muzzleVec;
Point3F _muzzlePoint, _endPosition ;
mSourceObject->getRenderMuzzleVector(mSourceObjectSlot, &_muzzleVec);
mSourceObject->getRenderMuzzlePoint(mSourceObjectSlot, &_muzzlePoint);
_endPosition = _muzzleVec* 50;
_endPosition += _muzzlePoint;
ColorF clientCol (0, 0, 1); //On Client: Draw line in Blue.
if(isServerObject())
clientCol.set(1, 0, 0); //On Server: Draw line in Red.
DebugDrawer::get()->drawLine(_muzzlePoint, _endPosition, clientCol);
DebugDrawer::get()->setLastTTL(TickMs);
....
}
Code: Select all
correctMuzzleVector = true;
correctMuzzleVectorTP = true;