mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-23 16:43:50 +00:00
proper player head rot clamp
This commit is contained in:
parent
35e946e627
commit
bba3b1a8d6
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
|
||||
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->writeSignedFloat(mHead.x / (mDataBlock->maxLookAngle - mDataBlock->minLookAngle), 6);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue