Ejemplo n.º 1
0
        public void SetFacing(Vector3FP direction, bool from_command = false)
        {
            if (IsRotatingDisabled)
            {
                return;
            }
            FixPoint angle = FixPoint.XZToUnityRotationDegree(direction.x, direction.z);

            SetFacing(angle, from_command);
        }
Ejemplo n.º 2
0
 public FixPoint ToDegree()
 {
     //返回绕Y轴的旋转角度
     return(FixPoint.XZToUnityRotationDegree(x, z));
 }