player = $player; $this->attemptedPosition = $attemptedPosition; $this->originalPosition = $originalPosition; $this->expectedPosition = $player->asVector3(); } /** * Returns the position the player attempted to move to. * @return Vector3 */ public function getAttemptedPosition() : Vector3{ return $this->attemptedPosition; } /** * @return Vector3 */ public function getOriginalPosition() : Vector3{ return $this->originalPosition; } /** * @return Vector3 */ public function getExpectedPosition() : Vector3{ return $this->expectedPosition; } }