JinStrong 发表于 2016-1-19 16:05:30

XML配置文件-模型旋转动作


<type>rotate</type>   --旋转
<object-name>rudder</object-name>---方向舵
<factor>100</factor>      ----旋转100度
...
<center>
<x-m>1.3</x-m>
<y-m>0.3</y-m>
<z-m>2.5</z-m>
</center>


请问各位,这个center指的是什么意思???指的是什么中心???

JinStrong 发表于 2016-1-19 16:07:44

补充:在三维软件中,rudder模型有xyz坐标值

姑射冰尘 发表于 2016-1-20 03:06:21

The <center> means the point that your 3D model actually rotate around. It is NOT necessary to be your geometric center or your original center of the entire 3D object. It just a point of rotation or spinning.

Hope this help.

JinStrong 发表于 2016-1-20 14:02:56

多谢。。。这么说,有道理。
请问,这个解释出处?

姑射冰尘 发表于 2016-1-20 16:20:27

JinStrong 发表于 2016-1-20 14:02
多谢。。。这么说,有道理。
请问,这个解释出处?

I am developing aircrafts for the Official FlightGear repo, so I don't think I need any 出处. This is not a theory, but just simply how the FlightGear's animation system works. FlightGear ignores the local coordination system of a single object, and it only uses global coordination. This is why the center is just a point of the rotation. If you are doing your academic project and need a formal reference or citation, I can't help, sorry. (抱歉无输入法,中文不方便)

姑射冰尘 发表于 2016-1-20 16:24:57

In order to find this center point, you need to know how to find the point of (0, 0, 0) of your entire aircraft model firstly, and then, the rotation center point is a related point of the center of entire aircraft.

JinStrong 发表于 2017-7-19 22:33:55

感谢姑射冰尘的回答,rudder的centre就是旋转中心

JinStrong 发表于 2017-7-19 22:34:18

感谢姑射冰尘的回答,rudder的centre就是旋转中心
页: [1]
查看完整版本: XML配置文件-模型旋转动作