Change transform of First Person Character with physics and rotation

For anybody who needs it. The rotation is not necessary but you can just use the location of that transform to move the char.

The rotation is done with the controller.

And the velocity, is the velocity of the character (GetVelocity()) just like that. It’s better to not AddImpulse to the character, but set the velocity directly .velocity = otherVelocity. So that it doesn’t add anything but replace it completely.