19 WriteValue<uint32_t>(OutFile, this->
DatabaseId);
95 WriteValue<char>(OutFile,
static_cast<char>(CarlaRecorderPacketId::PhysicsControl));
97 std::streampos PosStart = OutFile.tellp();
100 WriteValue<uint32_t>(OutFile, Total);
104 WriteValue<uint16_t>(OutFile, Total);
113 std::streampos PosEnd = OutFile.tellp();
114 Total = PosEnd - PosStart -
sizeof(uint32_t);
115 OutFile.seekp(PosStart, std::ios::beg);
116 WriteValue<uint32_t>(OutFile, Total);
117 OutFile.seekp(PosEnd, std::ios::beg);
FVehiclePhysicsControl PhysicsControl
void WriteStdVector(std::ostream &OutFile, const std::vector< T > &InVec)
void ReadStdVector(std::istream &InFile, std::vector< T > &OutVec)
void WriteValue(std::ostream &OutFile, const T &InObj)
void ReadValue(std::istream &InFile, T &OutObj)
std::vector< CarlaRecorderPhysicsControl > PhysicsControls
void Add(const CarlaRecorderPhysicsControl &InObj)
void Write(std::ostream &OutFile)
std::vector< geom::Vector2D > steering_curve
float damping_rate_zero_throttle_clutch_disengaged
std::vector< WheelPhysicsControl > wheels
float damping_rate_full_throttle
float damping_rate_zero_throttle_clutch_engaged
std::vector< GearPhysicsControl > forward_gears
std::vector< geom::Vector2D > torque_curve
geom::Location center_of_mass
void Read(std::istream &InFile)
FVehiclePhysicsControl VehiclePhysicsControl
void Write(std::ostream &OutFile)