mirror of
https://github.com/jwetzell/psn-js.git
synced 2026-08-14 03:43:55 +00:00
10 lines
214 B
JavaScript
10 lines
214 B
JavaScript
const chunk = require('../chunk');
|
|
|
|
module.exports = (x, y, z) => {
|
|
const buf = Buffer.alloc(12);
|
|
buf.writeFloatLE(x);
|
|
buf.writeFloatLE(y, 4);
|
|
buf.writeFloatLE(z, 8);
|
|
return chunk(0x0004, buf, false);
|
|
};
|