GarageGames / Torque3D

MIT Licensed Open Source version of Torque 3D from GarageGames
http://torque3d.org
MIT License
3.35k stars 1.2k forks source link

Looking up actually looks down #945

Closed crabmusket closed 9 years ago

crabmusket commented 9 years ago

Possibly an issue with stock animations. When you look all the way up, other clients see the soldier looking down.

andr3wmac commented 9 years ago

Found it. It's this: https://github.com/GarageGames/Torque3D/blob/development/Engine/source/T3D/player.cpp#L6155-L6156

Changing it to:

  stream->write(mHead.x);
  stream->write(mHead.z);

And adjusting the unpack accordingly fixes the problem, but uses more bits in the updates.

crabmusket commented 9 years ago

Thanks, Andrew! Will check later tonight. I suspect the slightly increased bit usage won't be too dramatic a problem.