mirror of
https://github.com/ConjureETS/PillowFight.git
synced 2026-03-24 00:50:59 +00:00
correct forward facing angle when not auto locking
This commit is contained in:
parent
f470b653be
commit
71b2eae11e
@ -85,7 +85,7 @@ public class ChildController : MonoBehaviour
|
||||
else {
|
||||
transform.eulerAngles = new Vector3(
|
||||
transform.eulerAngles.x,
|
||||
Mathf.Atan2(xLookingValue, zLookingValue) * Mathf.Rad2Deg,
|
||||
Mathf.Atan2(xLookingValue, zLookingValue) * Mathf.Rad2Deg -90, // -90 to correct forward facing angle...
|
||||
transform.eulerAngles.z);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user