@rflafla/f1-udp-parser
Version:
The F1 series of games support the outputting of key game data via a UDP data stream. This data can be interpreted by external apps or connected peripherals for a range of different uses, including providing additional telemetry information, customised HU
29 lines • 1.07 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CarMotionDataParser = void 0;
const F1Parser_1 = require("../F1Parser");
class CarMotionDataParser extends F1Parser_1.F1Parser {
constructor() {
super();
this.floatle('m_worldPositionX')
.floatle('m_worldPositionY')
.floatle('m_worldPositionZ')
.floatle('m_worldVelocityX')
.floatle('m_worldVelocityY')
.floatle('m_worldVelocityZ')
.int16le('m_worldForwardDirX')
.int16le('m_worldForwardDirY')
.int16le('m_worldForwardDirZ')
.int16le('m_worldRightDirX')
.int16le('m_worldRightDirY')
.int16le('m_worldRightDirZ')
.floatle('m_gForceLateral')
.floatle('m_gForceLongitudinal')
.floatle('m_gForceVertical')
.floatle('m_yaw')
.floatle('m_pitch')
.floatle('m_roll');
}
}
exports.CarMotionDataParser = CarMotionDataParser;
//# sourceMappingURL=CarMotionDataParser.js.map