Hey everyone, it's been a while!
I have an enemy and I'm setting up AI for it. I want the enemy to constantly send a raycast towards the player, and if it hits the player (if the enemy can "see" the player,) then the enemy will begin other AI procedures.
Right now, I store the player's position every frame and then use that variable as the "direction" for the raycast. But, strangely, the raycast shoots off into space, not towards the player at all. I'm hoping this is something silly I'm missing, if anyone can help guide, push, shove, or kick me in the right direction that would be great!