bgelogic.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:bge-logic-nodes-add-on 作者: thepgi 项目源码 文件源码
def _rotate(self, ch, xyzrot):
        orientation = self._convert_orientation(ch, xyzrot)
        if ch.rotation_mode is bge.logic.ROT_MODE_QUAT:
            ch.rotation_quaternion = mathutils.Quaternion(ch.rotation_quaternion) * orientation
        else:
            ch.rotation_euler = ch.rotation_euler.rotate(orientation)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号