Skip to content

five-on-it / packages/protocol/src/snapshot-v2 / entityOf

Function: entityOf() ​

entityOf(rec, full): EntitySnapshot

Defined in: packages/protocol/src/snapshot-v2.ts:245

An entity as a record holds it: its pose the record's full floats when full, else its quantized pose.

Parameters ​

rec ​

Uint8Array

full ​

boolean

Returns ​

EntitySnapshot