示例#1
0
    public static float GetYaw(float radian)
    {
        float   angle     = Rad2Deg(radian);
        Vector3 direction = new Vector3(0, 1.0f, 0);

        RPGMath2D.Rotate(direction.x, direction.y, -angle * Mathf.Deg2Rad, ref direction.x, ref direction.y);
        return(GeographicObject.GetDirection(direction.x, direction.y));
    }
示例#2
0
 public static void GetRotate(float angle, ref float x, ref float y)
 {
     RPGMath2D.Rotate(RPGMath2D.FRONT_X, RPGMath2D.FRONT_Y, angle, ref x, ref y);
 }