Apply force in direction

So I tried looking for this everywhere, but I just can’t find it.
The thing is I have a rocket and when it hits my player I want it to apply knockback to my player with the same rotation as my rocket.
Simply said I want to apply a force in a direction that’s the same as anothers transforms rotation.
Thanks in advance.

Regards,

Thow

transform.right, transform.up and transform.forward are the normalized directions of a transform’s x, y and z axis in world-space. You can simply pass those to Rigidbody.AddForce like so:

player.AddForce(rocket.transform.up * magnitude, ForceMode.Force);

(where ‘player’ is the player Rigidbody and rocket is the rocket GameObject)