Skip to content

Instantly share code, notes, and snippets.

@icywind
Created October 21, 2019 22:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save icywind/b1a7c2b5898f70559fd323f51458b944 to your computer and use it in GitHub Desktop.
Save icywind/b1a7c2b5898f70559fd323f51458b944 to your computer and use it in GitHub Desktop.
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