Esempio n. 1
0
 private void Update()
 {
     Actor.Orientation = Quaternion.Billboard(Actor.Position, Camera.MainCamera.Position, _up, Camera.MainCamera.Direction) * _orientation;
 }
Esempio n. 2
0
 private void OnEnable()
 {
     _orientation      = Actor.Orientation;
     Actor.Orientation = Quaternion.Billboard(Actor.Position, Camera.MainCamera.Position, _up, Camera.MainCamera.Direction) * _orientation;
 }