ShapeBase Mounting

Added mount transforms to ShapeBase
This commit is contained in:
OTHGMars 2014-06-16 20:46:25 -04:00 committed by Azaezel
parent 172e62a8f1
commit b5a957dfdc

View file

@ -1324,6 +1324,12 @@ void ShapeBase::processTick(const Move* move)
if (mWhiteOut <= 0.0)
mWhiteOut = 0.0;
}
if (isMounted()) {
MatrixF mat;
mMount.object->getMountTransform( mMount.node, mMount.xfm, &mat );
Parent::setTransform(mat);
}
}
void ShapeBase::advanceTime(F32 dt)
@ -1382,6 +1388,12 @@ void ShapeBase::advanceTime(F32 dt)
mFadeVal = 1 - mFadeVal;
}
}
if (isMounted()) {
MatrixF mat;
mMount.object->getRenderMountTransform( 0.0f, mMount.node, mMount.xfm, &mat );
Parent::setRenderTransform(mat);
}
}
void ShapeBase::setControllingClient( GameConnection* client )