public void Update(Geometry.Vector2 position, Geometry.Vector2 rotation, Geometry.Vector2 scale)
    {
        gameObject.transform.position = new Vector3((float)position.X, topPosition, (float)position.Y);

        gameObject.transform.eulerAngles = new Vector3(gameObject.transform.eulerAngles.x,
                                                       180 - (float)rotation.Angle * 180 / Mathf.PI,
                                                       gameObject.transform.eulerAngles.z);

        gameObject.transform.localScale = new Vector3((float)scale.X, (float)(scale.X + scale.Y) * 0.5f, (float)scale.Y);
    }
 public static Vector3 ToUnityVector3(this Geometry.Vector2 vec)
 {
     return(new Vector3((float)vec.X, 0, (float)vec.Y));
 }