How to do a better calculation than pathfinding with ray cast

ok I need you to use your imagination, imagine that the player is in front of a wall, and the npc is behind the wall, with a method the NPC detects the player because he is walking, and I want the NPC to throw a beam and when detecting a wall, I want it to grab the size of the part and move to the side next to the part, without turning its body, then when it does the tour, well, check if it is in the area of the shot, if there is another part, then do it the same, of course it will depend on the size of the part, if the part is very big then use paghfinding

5 Likes

Any help or advice would be appreciated, I really have many systems to do and I see this as an obstacle, making an intelligent NPC for an FPS Shooter is difficult, and if you have any questions or advice I would greatly appreciate it, no matter how stupid you think

2 Likes

help me please, i need you help

1 Like

In the end, no one helped me but I still think about helping people, when I went out for a while, I kept thinking about how the system could do, super disturbing for me, in the end I didn’t worry much and I just know Something simple happened to me, basically it consists of shooting a ray towards the player (if he hears it) if there is a wall ahead then it will add the part to ignore it in the Exclude table, after that it will shoot another ray and if it hits the player then throw a ray to the right and create a route to that part, after that it will walk until now, apart from the waypoints will double in 6 So that; shoot a beam towards the player every time he finishes moving and in this way check if he is already in range

1 Like