Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

GameObject jitter using transform.LookAt

$
0
0
I've got a gameObject (health bar) that's childed to a space ship that moves quite rapidly, causing a slight jitter occasionally because the gameObjects transform and scale are constantly being updated in FixedUpdate.

I know the solution has something to do with Quaternions and interpolation, but I don't quite know how to implement it into my code.

Here is the script I'm using.
Code (CSharp):
  1. public class statusBar_configuration : MonoBehaviour
  2. {
  3.     public float scaleDistance;...
GameObject jitter using transform.LookAt

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>