pub struct VelocityState {
pub linear_velocity: Vec3,
pub angular_velocity: Vec3,
pub mass: f32,
pub body_type: BodyType,
}Expand description
Represents the physical state of a body relevant to impulse resolution.
Fields§
§linear_velocity: Vec3Linear velocity vector.
angular_velocity: Vec3Angular velocity vector.
mass: f32Mass of the body.
body_type: BodyTypeType of the body (Dynamic, Static, Kinematic).
Trait Implementations§
Source§impl Clone for VelocityState
impl Clone for VelocityState
Source§fn clone(&self) -> VelocityState
fn clone(&self) -> VelocityState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VelocityState
impl Debug for VelocityState
impl Copy for VelocityState
Auto Trait Implementations§
impl Freeze for VelocityState
impl RefUnwindSafe for VelocityState
impl Send for VelocityState
impl Sync for VelocityState
impl Unpin for VelocityState
impl UnwindSafe for VelocityState
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