Quantcast
Channel: Latest Questions by Turkeybag
Viewing all articles
Browse latest Browse all 27

Make something turn towards something else at a constant rate?

$
0
0
Hey! I have a flying orb that is constantly trying to laser the player. However I want him to turn at a constant rate and he does not. He turns slower the closer to the player he is. RotationVar = Quaternion.LookRotation(Target.position - transform.position); transform.rotation = Quaternion.Slerp(transform.rotation, RotationVar, Time.deltaTime * TurnSpeed); This is the code making the orb turn (and thus, making the laser go toward the player) but I have no idea what to do with it to make it turn the orb at a constant rate. Any ideas?

Viewing all articles
Browse latest Browse all 27

Trending Articles



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