Neodroid  0.2.0
Machine Learning Environment Prototyping Tool
PointInDirection.cs
Go to the documentation of this file.
1 using UnityEngine;
2 
3 namespace droid.Runtime.Utilities.Misc.Orientation {
7  [ExecuteInEditMode]
8  public class PointInDirection : MonoBehaviour {
11  [SerializeField]
12  Vector3 _direction = Vector3.down;
13 
16  void Update() { this.transform.rotation = Quaternion.LookRotation(this._direction); }
17  }
18 }