This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

RayCasting system  RSS feed

 
Marko Taht
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
Marko Taht
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no code given because i dont need code i need the concept.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!