X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=doc%2Fprotocol;h=8e2694970ce596b049b2facb4aa313634214b085;hb=c1c0d8c3c10a25002adccf7a977f05a57c4aa3a0;hp=025a13d1b09e784d291ea0398e1503be9ffc312e;hpb=33b37e7242e4cbfa76e4a0d6e5bb54223b541162;p=blank.git diff --git a/doc/protocol b/doc/protocol index 025a13d..8e26949 100644 --- a/doc/protocol +++ b/doc/protocol @@ -30,7 +30,8 @@ packu 2 16bit unsigned int representing a float value normalized to it can be unpacked by dividing by 65535 vec3n 6 3x packn vec3u 6 3x packu -quat 8 4x packn float +quat 8 2bit index of largest component, a 2bit padding, then 3x 20bit small components in xyzw + order mapped from [-0.7072,0.7072] to [0,1048574] (with largest omitted) entity state 42 [ 0] vec3i chunk pos (there's a variation where this is a vec3b) [12] vec3u block pos by 16, [18] vec3 velocity,