I am working on a robot simulation using the UT3 game engine. We have our own robot and sensor classes that we are currently working on porting in from UT2004. I am trying to add a sound sensor, but I am unsure of the best way to do that. Our robots are extended from SVehicle and we attached a camera to the robot and can speculate from that camera. I realize that when I am attached to the robot like this I can hear the sounds that I need to as if I were playing the game, but I need to somehow pick out the data of the sounds that the robot can "hear". Specifically I need the relative direction, volume, and sound so that later I can make a visual tool to show the sound instead of just hearing it through the speakers.
I think I want to use HearNoise from the Pawn class, but I've heard of problems that this event won't ever firing and I am unsure if I can get the data I need even if it does.
The only other option I can think of is check every Actor to see if it is either an AmbientSound or a Pawn (and possibly any other Actors that might make a sound), which I am not even sure is possible, then some how see if it is making a sound. Then if it is I would need to calculate all of the data relative to my robot based on the volume, distance, radius, and whether or not there are any walls in the way. But this seems too complicated for a task that I believe should be part of the Engine.
I was hoping someone might be able to confirm that one of my options will work and help answer my questions with that option, or let me know of other options that might work better.
I tried searching for this answer but was unable to find anything, so if you know of a thread that might help, could you post that for me. Thanks
I think I want to use HearNoise from the Pawn class, but I've heard of problems that this event won't ever firing and I am unsure if I can get the data I need even if it does.
The only other option I can think of is check every Actor to see if it is either an AmbientSound or a Pawn (and possibly any other Actors that might make a sound), which I am not even sure is possible, then some how see if it is making a sound. Then if it is I would need to calculate all of the data relative to my robot based on the volume, distance, radius, and whether or not there are any walls in the way. But this seems too complicated for a task that I believe should be part of the Engine.
I was hoping someone might be able to confirm that one of my options will work and help answer my questions with that option, or let me know of other options that might work better.
I tried searching for this answer but was unable to find anything, so if you know of a thread that might help, could you post that for me. Thanks