If I use Quaternion.LookRotation() with a slerp to achieve a slow rotation towards a target, how can I test for when it is actually pointing at the target. I want to start firing bullets when the gun is pointing at the target only
Thanks
If I use Quaternion.LookRotation() with a slerp to achieve a slow rotation towards a target, how can I test for when it is actually pointing at the target. I want to start firing bullets when the gun is pointing at the target only
Thanks
Replace “< 5.0” with “== 0”
Thanks legend, I’ll try using that approach
I have concerns about how fast or accurate Lerp and Slerp functions are in using them in over time functions. What you basically say is: I want a number that is x percentage of the distance between these two values. It honestly never should reach the other value.
So in legend411’s response, I would say replace “< 5.0” with “< 0.001”
OK, BigMisterB … thanks !