Hi can anyone help me convert this code from javascript to c#? I tried myself but couldn't figure out what to replace "var rotation" at the start with :/ Thanks
var rotation = Quaternion.LookRotation(Target.position - transform.position);
transform.rotation = Quaternion.Slerp(transform.rotation, rotation, Time.deltaTime * Damping);
↧