Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void FixedUpdate() {
- transform.Rotate(m_RotationDirection * Time.deltaTime * m_Speed);
- Debug.Log("rotationOrigin = " + rotationOrigin);
- //Debug.Log("rotation = " + gameObject.transform.rotation.eulerAngles);
- float angleSum = 0;
- angleSum += this.gameObject.transform.rotation.eulerAngles.y;
- Debug.Log("angleSum = " + angleSum);
- if (angleSum >= 360.0f)
- {
- ++rotations;
- Debug.Log("rotations = " + rotations);
- angleSum -= 360;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement