diff options
author | chai <chaifix@163.com> | 2020-11-04 08:59:59 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2020-11-04 08:59:59 +0800 |
commit | d02d8779f4c36d4aec58a5d2d460f482894af3b8 (patch) | |
tree | 800881bfaff28115eb063a5795f0343905ed7c20 /Assets/Scripts/Physics/PhysicsBody.cs | |
parent | ef739e3c4d66007fb9c2ced195edb539eb92f3a4 (diff) |
*after image
Diffstat (limited to 'Assets/Scripts/Physics/PhysicsBody.cs')
-rw-r--r-- | Assets/Scripts/Physics/PhysicsBody.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Assets/Scripts/Physics/PhysicsBody.cs b/Assets/Scripts/Physics/PhysicsBody.cs index b6be778a..80026962 100644 --- a/Assets/Scripts/Physics/PhysicsBody.cs +++ b/Assets/Scripts/Physics/PhysicsBody.cs @@ -28,7 +28,8 @@ public sealed class PhysicsBody : MonoBehaviour {
float rotY = Quaternion.ToEulerAngles(transform.rotation).y;
rotY = Mathf.Rad2Deg * rotY;
- return rotY > 0 && rotY <= 180;
+ bool right = rotY >= 0 && rotY <= 180;
+ return right;
}
}
|