James-Frowen / BitPacking

A c# Bit packing implementation for Unity3d, Build for Mirage and Mirror networking
MIT License
23 stars 6 forks source link

0 is not 0 for Quaternion #1

Closed James-Frowen closed 3 years ago

James-Frowen commented 3 years ago

because range is [-0.707107,+0.707107] 0 might not fall on step, instead write sign as 1 bit, then rest of value in [0,0.707107] range

James-Frowen commented 3 years ago

fixed with https://github.com/James-Frowen/BitPacking/commit/b802c7f25e37c90d6296daa811d9776abb5a88eb