Created
October 21, 2019 22:04
-
-
Save icywind/b1a7c2b5898f70559fd323f51458b944 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
namespace Tanks.Utilities { | |
public class FixedRotation : MonoBehaviour | |
{ | |
// Plane facing front | |
readonly Quaternion m_Rotation = Quaternion.Euler(-45,45,0); | |
void LateUpdate() | |
{ | |
transform.rotation = m_Rotation; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment