protected float _rotation; // Camera Rotation public Camera2D() { _zoom = 1.0f; _rotation = 0.0f; _pos = Vector2.Zero; }
// Auxiliary function to move the camera public void Move(Vector2 amount) { _pos += amount; }
/// <summary> /// Vector2をVector3に変換 /// </summary> /// <param name="vector2">変換元</param> /// <returns>変換されたVector3</returns> private Vector3 ToVector3(Vector2 vector2) { return(new Vector3(vector2.x, vector2.y, 0)); }