19 WriteValue<uint32_t>(OutFile, this->
DatabaseId);
80 PhysicsControls.clear();
85 PhysicsControls.push_back(InObj);
90 if (PhysicsControls.size() == 0)
97 std::streampos PosStart = OutFile.tellp();
100 WriteValue<uint32_t>(OutFile, Total);
103 Total = PhysicsControls.size();
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);
void ReadValue(std::istream &InFile, T &OutObj)
void Read(std::istream &InFile)
void Write(std::ostream &OutFile)
std::vector< geom::Vector2D > steering_curve
void WriteStdVector(std::ostream &OutFile, const std::vector< T > &InVec)
void Add(const CarlaRecorderPhysicsControl &InObj)
void Write(std::ostream &OutFile)
std::vector< GearPhysicsControl > forward_gears
float damping_rate_full_throttle
std::vector< WheelPhysicsControl > wheels
std::vector< geom::Vector2D > torque_curve
void WriteValue(std::ostream &OutFile, const T &InObj)
float damping_rate_zero_throttle_clutch_engaged
float damping_rate_zero_throttle_clutch_disengaged
void ReadStdVector(std::istream &InFile, std::vector< T > &OutVec)
geom::Location center_of_mass
FVehiclePhysicsControl VehiclePhysicsControl