doing force and spin on a gameobject when clicking on plane.

transform.rotation = Quaternion.RotateTowards(transform.rotation, hit.point, damping * Time.deltaTime);

There is an error in this line. please find what it is and tell me. Unity says,

Assets/Codes/boatForce.js(17,35): UCE0001: ';' expected. Insert a semicolon at the end.

Please help me in finding out what is the error. Waiting for a quick response. Thanks.

Use Quaternion.Slerp instead of Quaternion.RotateTowards.

var rotation = Quaternion.LookRotation(hit.point - transform.position);
            transform.rotation = Quaternion.Slerp(transform.rotation, rotation, Time.deltaTime * damping);

error solved. this code works...