[LayaAirIDE 2.0]如何通过四元数旋转

请问laya里如何实现unity里这句:
GetComponent<Rigidbody>().AddForce (
Quaternion.Euler (new Vector3(transform.rotation.eulerAngles.x,transform.rotation.eulerAngles.y,transform.rotation.eulerAngles.z))
*new Vector3(25f*length,0,0), ForceMode.VelocityChange);
大概的须求是2d场景,旋转鼠标,炮台也跟着旋转,点击鼠标能够发射,射击方向跟炮台一致
已邀请:

要回复问题请先

商务合作
商务合作