diff options
author | Paul Ouellette <oue.paul18@gmail.com> | 2019-02-07 16:26:06 -0500 |
---|---|---|
committer | Paramat <paramat@users.noreply.github.com> | 2019-02-07 21:26:06 +0000 |
commit | d5456da69de6d74206a8513fc53db38c7dd4bd22 (patch) | |
tree | e0586b970acf83833c54166caaa00a9b8820bc05 /src/network | |
parent | fc566e2e1074e501283d4be70a654d6b79ef07ff (diff) | |
download | minetest-d5456da69de6d74206a8513fc53db38c7dd4bd22.tar.gz minetest-d5456da69de6d74206a8513fc53db38c7dd4bd22.tar.bz2 minetest-d5456da69de6d74206a8513fc53db38c7dd4bd22.zip |
Use true pitch/yaw/roll rotations without loss of precision by pgimeno (#8019)
Store the rotation in the node as a 4x4 transformation matrix internally (through IDummyTransformationSceneNode), which allows more manipulations without losing precision or having gimbal lock issues.
Network rotation is still transmitted as Eulers, though, not as matrix. But it will stay this way in 5.0.
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/networkprotocol.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/networkprotocol.h b/src/network/networkprotocol.h index 703e96056..85436068f 100644 --- a/src/network/networkprotocol.h +++ b/src/network/networkprotocol.h @@ -193,6 +193,7 @@ with this program; if not, write to the Free Software Foundation, Inc., Add TOCLIENT_NODEMETA_CHANGED New network float format ContentFeatures version 13 + Add full Euler rotations instead of just yaw */ #define LATEST_PROTOCOL_VERSION 37 |