UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

18 lines (15 loc) 421 B
/** * * @param {BinaryBuffer} buffer * @param {AABB3} box */ function deserializeAABB3(buffer, box) { const x0 = buffer.readFloat64(); const y0 = buffer.readFloat64(); const z0 = buffer.readFloat64(); const x1 = buffer.readFloat64(); const y1 = buffer.readFloat64(); const z1 = buffer.readFloat64(); box.setBounds(x0, y0, z0, x1, y1, z1); } export { deserializeAABB3 };