pub struct Fixture { /* private fields */ }
Implementations§
source§impl Fixture
impl 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)
Auto Trait Implementations§
impl RefUnwindSafe for Fixture
impl !Send for Fixture
impl !Sync for Fixture
impl Unpin for Fixture
impl UnwindSafe for Fixture
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