Guest User

Untitled

a guest
Aug 20th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. RigidBody RB = ...;
  2. float flipStrength = 1f;
  3.  
  4. if (Mathf.Abs(transform.localRotation.eulerAngles.z) > 90f) {
  5. RB.AddRelativeTorque(0f, 0f, flipStrength, ForceMode.Acceleration);
  6. }
Add Comment
Please, Sign In to add comment