pub struct Hearing { /* private fields */ }Implementations§
Source§impl Hearing
impl Hearing
Sourcepub fn new(
range: f32,
mask: u32,
blocked_scale: f32,
) -> Result<Hearing, AiError>
pub fn new( range: f32, mask: u32, blocked_scale: f32, ) -> Result<Hearing, AiError>
Occluded sound radius is scaled by blocked_scale. None as query in test disables occlusion; this is an explicit host choice, not a failed query.
pub fn test( &self, position: Vec3, noise: Noise, budget: &mut WorkBudget, query: Option<&mut dyn VisibilityQuery>, ) -> Result<Detection, AiError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Hearing
impl RefUnwindSafe for Hearing
impl Send for Hearing
impl Sync for Hearing
impl Unpin for Hearing
impl UnwindSafe for Hearing
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more