2007年4月16日星期一

setRotationAngle不能叠加!

如果想把物体分别绕三个轴各旋转多少度,不能用三次setRotationAngle,即下面的方法是错误的:
/gate/PinholeInsert/placement/setRotationAxis 0 0 1
/gate/PinholeInsert/placement/setRotationAngle -10 deg
/gate/PinholeInsert/placement/setRotationAxis 1 0 0
/gate/PinholeInsert/placement/setRotationAngle 20. deg
/gate/PinholeInsert/placement/setRotationAxis 0 1 0
/gate/PinholeInsert/placement/setRotationAngle -30. deg

而必须算出最后的setRotationAxis和setRotationAngle。

0 条评论:

发表评论

订阅 博文评论 [Atom]

<< 主页