]> git.localhorst.tv Git - blank.git/blobdiff - doc/protocol
Process
[blank.git] / doc / protocol
index 025a13d1b09e784d291ea0398e1503be9ffc312e..f194d77d3ce28a7bcb17ab676efb87bb705ec860 100644 (file)
@@ -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,
@@ -169,6 +170,10 @@ Chunk Begin
 -----------
 
 Sent by the server to inform the client of an upcoming chunk transmission.
+The client may send this packet to the server to re-request a chunk
+transmission.  In that case fields other than the chunk coordinates are
+ignored. Also, the server may choose not to resend the chunk (e.g. if the
+player is too far away from it).
 
 Code: 9
 Payload: