Skip to content

Commit 1dffa69

Browse files
takagishana
and
hana
authored
WheelInfo::Write添加注释 (#3173)
* 翻译注释 * StaticMeshCollection.h添加注释 * StaticMeshCollection.h添加注释 * 添加注释 * 添加注释 * NormalsCamera添加注释 * ActorWithRandomEngine添加注释 * EmptyActor添加注释 * EmptyActor添加注释 * DefaultMovementComponent添加注释 * SignComponent添加注释 * CarlaRecorderDoorVehicle添加注释 * CarlaRecorderFrameCounter添加注释 * GetRecorderFilename添加注释 * AProceduralMeshActor添加注释 * CarlaRecorderEventParent添加注释 * WheelInfo::Write添加注释 --------- Co-authored-by: hana <[email protected]>
1 parent 1bc3a79 commit 1dffa69

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Recorder/CarlaRecorderAnimVehicleWheels.cpp

+14-3
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,22 @@
88
#include "CarlaRecorderHelpers.h"
99
#include "CarlaRecorderAnimVehicleWheels.h"
1010

11+
12+
// 功能: 将 WheelInfo 对象的数据写入到指定的输出流中
1113
void WheelInfo::Write(std::ostream &OutFile) const
1214
{
13-
WriteValue<EVehicleWheelLocation>(OutFile, Location);
14-
WriteValue<float>(OutFile, SteeringAngle);
15-
WriteValue<float>(OutFile, TireRotation);
15+
// 写入车辆车轮的位置信息
16+
// WriteValue 是一个模板函数,用于将指定类型的值写入输出流
17+
// EVehicleWheelLocation 是车轮位置的枚举类型
18+
WriteValue<EVehicleWheelLocation>(OutFile, Location);
19+
20+
// 写入车轮的转向角度
21+
// SteeringAngle 是一个浮点数,表示车轮的转向角度
22+
WriteValue<float>(OutFile, SteeringAngle);
23+
24+
// 写入轮胎的旋转角度
25+
// TireRotation 是一个浮点数,表示轮胎的旋转角度
26+
WriteValue<float>(OutFile, TireRotation);
1627
}
1728

1829
void WheelInfo::Read(std::istream &InFile)

0 commit comments

Comments
 (0)