public void SetFacing(Vector3FP direction, bool from_command = false) { if (IsRotatingDisabled) { return; } FixPoint angle = FixPoint.XZToUnityRotationDegree(direction.x, direction.z); SetFacing(angle, from_command); }
public FixPoint ToDegree() { //返回绕Y轴的旋转角度 return(FixPoint.XZToUnityRotationDegree(x, z)); }