mix add force and rotate

how to rotate object During the throw ball (add Force ) to arrive the target…?

void FixedUpdate ()
{

if (Input.GetMouseButton(0))
{
MyTransfrom.rigidbody.AddForce(MyTransfrom.forward * 400);

check = true;
}

if (check)
{

rotation = Quaternion.LookRotation(target.position - MyTransfrom.position);
MyTransfrom.rotation = Quaternion.Slerp(MyTransfrom.rotation, rotation, Time.deltaTime * turnSpeed);

}

}

This is code didn’t work to rotate…?

As you’re using physics, maybe you’re better of using rigidbody.AddTorque to rotate the ball? If that’s not what you want, then I’m sorry, but the question wasn’t very clear. But yeah, add torque at the same time as you add the force and it should spin.