i want to make the float same as transform rotation, so this my script :
float rotX;
rotX = cam.transform.rotation.x;
sometimes the number is equal
sometimes is not
how can i equalize value ??
and how can i to clamp it ??
i want to make the float same as transform rotation, so this my script :
float rotX;
rotX = cam.transform.rotation.x;
sometimes the number is equal
sometimes is not
how can i equalize value ??
and how can i to clamp it ??