pub struct Meta { /* private fields */ }Implementations§
Source§impl Meta
impl Meta
pub fn velocity(&self) -> &Speed
pub fn velocity_mut(&mut self) -> &mut Speed
pub fn angle_velocity(&self) -> FloatNum
pub fn angle_velocity_mut(&mut self) -> &mut FloatNum
pub fn total_transform(&self) -> &Transform
pub fn factor_friction(&self) -> FloatNum
pub fn factor_friction_mut(&mut self) -> &mut FloatNum
pub fn factor_restitution(&self) -> FloatNum
pub fn factor_restitution_mut(&mut self) -> &mut FloatNum
pub fn is_fixed(&self) -> bool
pub fn is_fixed_mut(&mut self) -> &mut bool
pub fn is_transparent(&self) -> bool
pub fn is_transparent_mut(&mut self) -> &mut bool
pub fn is_ignore_gravity(&self) -> bool
pub fn is_ignore_gravity_mut(&mut self) -> &mut bool
pub fn is_sleeping(&self) -> bool
pub fn contact_count(&self) -> u16
pub fn contact_count_mut(&mut self) -> &mut u16
Source§impl Meta
impl Meta
pub fn mass(&self) -> Mass
pub fn inv_mass(&self) -> Mass
pub fn set_mass(&mut self, mass: FloatNum) -> &mut Self
pub fn motion(&self) -> Vector
pub fn moment_of_inertia(&self) -> Mass
pub fn inv_moment_of_inertia(&self) -> Mass
pub fn mark_motionless(&mut self)
pub fn motionless_frame_counter(&self) -> u8
pub fn reset_motionless_frame_counter(&mut self)
pub fn mark_is_sleeping(&mut self, is_sleeping: bool)
pub fn apply_impulse(&mut self, impulse: Vector, r: Vector)
pub fn compute_kinetic_energy(&self) -> f32
Trait Implementations§
Source§impl From<MetaBuilder> for Meta
impl From<MetaBuilder> for Meta
Source§fn from(value: MetaBuilder) -> Self
fn from(value: MetaBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Meta
impl RefUnwindSafe for Meta
impl Send for Meta
impl Sync for Meta
impl Unpin for Meta
impl UnwindSafe for Meta
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