For my RPG project, I’m trying to figure out if RayCast is something I should use. If anyone remembers Super Mario RPG for SNES, my game mechanics for my proof of concept are to be able to run around a simple town, interact with NPCs and then venture out and run into enemies.
I plan on using a controller or keyboard for input, but I don’t really have a need for a mouse (I’m trying to stay to 90s RPG roots). That being said, should I use a RayCast for determining layers for Interacting with or is there a simpler way to go about it? My pseudocode idea basically reads, when near NPC and facing towards it, press button to interact. With enemies, the pseudocode is when collision with enemy occurs, go to battle scene, etc.
Anyone with a bit more experience on RayCasting that can weight in on this?