Ball Target Rotation

Hi, I have a ball with a sphere collider and rigidbody. I spawn the ball and move it to the target. Thanks to the rigidbody it also rotates while it is moving. But I have something to achieve:
I want the ball rotation to be equal to a certain rotation value after it’s arrived to the target.

So I think I can do this in 2 ways that is:

  1. I need to calculate and set the initial rotation after it is spawned, and it will be at a certain rotation after it arrived to the target.
  2. Or, I will manually rotate it while it is moving to the target.

But the problem is, I tried but couldn’t get any chance to achieve it. So I need help.



Untitled Project

I’ve found a workaround for now but I will need a better solution.

I’ve set the ball’s initial rotation as 0,0,-90 (that is the value I want at the end of the movement)
And the distance between spawnpoint and target rotation was 2.24 so the 24 after the dot is the problem. For now, I use whole numbers like 3 so in the beginning I set the rotation and it rotates 360 degrees 3 times and at the end of the movement, it will be in the same rotation.