posted 11 months ago
I have the code to raycast from a single point to all of the map. My question is, how can i have multiple objects that have raycast? Like AI who moves around. They have to use raycast so that i could give them a FOV + lighting effects. So if they are all on a same map, how to i do it? Do i create separate Raycasting pbject for eatch of the entity and register all the items on each, or i have one big raycast system that has all the objects + entitys in them and then inside there i do the raycasting or is there some other way ?