Thread: Hearing sounds
View Single Post
Re: Hearing sounds
Old
  (#10)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: Hearing sounds - 13-01-2004

Right.
My bot's AI is not that far yet, hence I never faced really the problem. But it certainly will arise sooner or later.

I believe I can tackle it out easily, though... lemme see:

- The "direction" will encompass a certain group of walkfaces in the navmesh, which I can pop out quickly thanks to the topology hashtable
- The "distance" will be expressed in function of the sound's LOUDNESS, taking in account whether there is a direct LOS or not (a wall in between, for example).

Direction & distance => position.

I believe that's the most human-like way of doing things. However, this was just a 5 minute thought. I might be able to do better



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote