Rotating a GO to a point

Hi,

I’m trying to rotate a gameobject towards to a point in 3d space. I got it working so far using this code:

var rotation = Quaternion.LookRotation(targetPosition - transform.position);
str = Mathf.Min (rotationForce * Time.deltaTime, 1); 
transform.rotation = Quaternion.Slerp(transform.rotation, rotation, str);

targetPosition is the point in 3d space which I want to face the object to (slowly).

But the code above rotates the GO pretty fast if the angle is large. What I look for is rotating a GO at a constant speed. Don’t know if it’s because I had a long day but I can’t get it to work. Anyone can help out on this?

Thanks
Martin

Sounds like this topic is basically what you want.

–Eric