mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 16:14:38 +00:00
Merge pull request #802 from Azaezel/alpha40/playerClampProper
proper player head rot clamp
This commit is contained in:
commit
956bd51d6d
1 changed files with 1 additions and 1 deletions
|
|
@ -6368,7 +6368,7 @@ U32 Player::packUpdate(NetConnection *con, U32 mask, BitStream *stream)
|
||||||
}
|
}
|
||||||
|
|
||||||
// constrain the range of mRot.z
|
// constrain the range of mRot.z
|
||||||
mWrapF(mRot.z, 0.0f, M_2PI_F);
|
mRot.z = mWrapF(mRot.z, 0.0f, M_2PI_F);
|
||||||
|
|
||||||
stream->writeFloat(mRot.z / M_2PI_F, 7);
|
stream->writeFloat(mRot.z / M_2PI_F, 7);
|
||||||
stream->writeSignedFloat(mHead.x / (mDataBlock->maxLookAngle - mDataBlock->minLookAngle), 6);
|
stream->writeSignedFloat(mHead.x / (mDataBlock->maxLookAngle - mDataBlock->minLookAngle), 6);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue