Hello, I am trying to get the rocket to sync up with the rocket launcher. What my code does, is it sets the rocket to the position of the player, sets it's angle to the rocket launcher's angle, and then tries to move it a bit forward based on it's angle so that the rocket looks like it just got launched out of the launcher. The only thing that doesn't work is that the rocket is moving multiple times faster than the actual rocket launcher for some reason. The only thing that messed this up was when I tried to move the rocket forward from the player using sin and cos. Please help me sync them up so that the rocket looks like it's being fired from the rocket launcher.
this->rocket->updatePos(this->player->getPos());
this->rocket->updateRot(this->launcher->getRot());
this->rocket->updatePos(sf::Vector2f(this->player->getPos().x + (25 * cos(this->rocket->getRot())), this->player->getPos().y + (25 * -sin(this->rocket->getRot()))));
Video of what is going on: https://youtu.be/1meZuP1ebW4