- What do you want to achieve? Keep it simple and clear!
I want to make a raycasting that detects only the front part of the character’s body in the area that it can see.
- What is the issue? Include screenshots / videos if possible!
I want the AI to only move when the player is not facing the monster.
And stay still when player facing the monster
- What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I have tried to add a small part in front of the character but the player only needs to rotate his body 90 degrees and does not need to be 100% facing the monster to stop it, and I want the monster to only chase the player in front of him, because if I use a small part in front of the character then the monster will still be able to detect the player even though it is behind him.
I wanted to make the raycasting like it’s a monster’s vision, so it only sees what’s in front of it, but after reading and watching tutorial videos on youtube I only found out how to make raycasting, blasting a line to a certain part.
and please provide me with useful resources for creating AI, raycasting, and pathfinding, thank you all.