I’m trying to figure out how to correctly use the ShortestBetween
function. My goal is for the NPC to tween it’s rotation by the shortest path to aim at it’s new target, but as you’ll notice in the video below, when I (the main player) go beneath the NPC’s Y value it starts flipping around awkwardly. The tween is (to my eyes) taking the longer path to the new rotation point.
My game is open source, here is a link to my implementation: