FlightGear飞行模拟器

标题: XML配置文件-模型旋转动作 [打印本页]

作者: JinStrong    时间: 2016-1-19 16:05
标题: 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
补充:在三维软件中,rudder模型有xyz坐标值
作者: 姑射冰尘    时间: 2016-1-20 03:06
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
多谢。。。这么说,有道理。
请问,这个解释出处?
作者: 姑射冰尘    时间: 2016-1-20 16:20
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
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
感谢姑射冰尘的回答,rudder的centre就是旋转中心
作者: JinStrong    时间: 2017-7-19 22:34
感谢姑射冰尘的回答,rudder的centre就是旋转中心




欢迎光临 FlightGear飞行模拟器 (https://flightgear.org.cn/) Powered by Discuz! X3.2