public function cannonBallPosition($x, $y) { $this->cannonBall->position = new Point($this->cannon->getCenter()->x + $x, $this->cannon->getCenter()->y - $y); }