pub struct Physical {
pub collidable: Collidable,
pub velocity: Vector2<f32>,
pub angular_velocity: f32,
pub centre_of_mass: Vector2<f32>,
pub restitution: f32,
pub inertia: f32,
}
Fields§
§collidable: Collidable
§velocity: Vector2<f32>
§angular_velocity: f32
§centre_of_mass: Vector2<f32>
§restitution: f32
§inertia: f32
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Physical
impl RefUnwindSafe for Physical
impl Send for Physical
impl Sync for Physical
impl Unpin for Physical
impl UnwindSafe for Physical
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)