pub struct FixtureAccess<'a, U: UserDataTypes>(/* private fields */);
Methods from Deref<Target = Fixture>§
pub fn handle(&self) -> FixtureHandle
pub fn shape_type(&self) -> ShapeType
pub fn is_sensor(&self) -> bool
pub fn filter_data<'a>(&'a self) -> &'a Filter
pub fn body(&self) -> BodyHandle
pub fn test_point(&self, point: &Vec2) -> bool
pub fn ray_cast(&self, input: &RayCastInput, child_index: i32) -> RayCastOutput
pub fn mass_data(&self) -> MassData
pub fn density(&self) -> f32
pub fn friction(&self) -> f32
pub fn restitution(&self) -> f32
pub fn aabb<'a>(&'a self, child_index: i32) -> &'a AABB
pub fn shape_mut<'a>(&'a mut self) -> WrappedRefMut<'a, UnknownShape>
pub fn shape<'a>(&'a self) -> WrappedRef<'a, UnknownShape>
pub fn set_sensor(&mut self, flag: bool)
pub fn set_filter_data(&mut self, filter: &Filter)
pub fn refilter(&mut self)
pub fn set_density(&mut self, density: f32)
pub fn set_friction(&mut self, friction: f32)
pub fn set_restitution(&mut self, restitution: f32)
pub fn dump(&mut self, child_count: i32)
Trait Implementations§
source§impl<'a, U: UserDataTypes> Deref for FixtureAccess<'a, U>
impl<'a, U: UserDataTypes> Deref for FixtureAccess<'a, U>
source§impl<'a, U: UserDataTypes> DerefMut for FixtureAccess<'a, U>
impl<'a, U: UserDataTypes> DerefMut for FixtureAccess<'a, U>
source§impl<'a, U: UserDataTypes> UserData<<U as UserDataTypes>::FixtureData> for FixtureAccess<'a, U>
impl<'a, U: UserDataTypes> UserData<<U as UserDataTypes>::FixtureData> for FixtureAccess<'a, U>
fn user_data(&self) -> &U::FixtureData
fn user_data_mut(&mut self) -> &mut U::FixtureData
fn set_user_data(&mut self, v: U)
Auto Trait Implementations§
impl<'a, U> RefUnwindSafe for FixtureAccess<'a, U>where
U: RefUnwindSafe,
impl<'a, U> !Send for FixtureAccess<'a, U>
impl<'a, U> !Sync for FixtureAccess<'a, U>
impl<'a, U> Unpin for FixtureAccess<'a, U>where
U: Unpin,
impl<'a, U> !UnwindSafe for FixtureAccess<'a, U>
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