xlua框架 使用Quaternion获取角色移动方向 报错
self.dir = Quaternion.AngleAxis(self.angle,Vector3.up) * self.dir
Common/UnityEngine/Quaternion.lua:89: attempt to perform arithmetic on a nil value (field 'x')
报错说的是‘x’啊,是这一行吗?
所以self.angle是一个四元数吗?