public void DrawPosition(Obstacle obstacle, SpriteBatch spriteBatch) { // get the screen position of the node in the scene relative to world coordinates Vector2 drawPosition = ApplyTransformations(obstacle.worldPosition); obstacle.setDrawPosition(drawPosition); //return drawPosition; obstacle.Draw(spriteBatch); }