I am trying to smoothly rotate the chest bone of my player, and lerp is just not working at all. My character just shakes violently in place and doesn’t rotate. Is there any reason why this is happening?
void LateUpdate()
{
if (aiming == true)
{
//chest.LookAt(aimtarget.position);
//chest.rotation = chest.rotation * Quaternion.Euler(20, 40, 10);
var lookDir = Quaternion.LookRotation(aimtarget.position - chest.position);
chest.rotation = Quaternion.Lerp(chest.rotation, lookDir, Time.deltaTime);
}
}