问题遇到的现象和发生背景
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')
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')