pub struct BodySim {Show 18 fields
pub transform: WorldTransform,
pub center: Pos,
pub rotation0: Quat,
pub center0: Pos,
pub local_center: Vec3,
pub force: Vec3,
pub torque: Vec3,
pub inv_mass: f32,
pub inv_inertia_local: Matrix3,
pub inv_inertia_world: Matrix3,
pub min_extent: f32,
pub max_extent: Vec3,
pub max_angular_velocity: f32,
pub linear_damping: f32,
pub angular_damping: f32,
pub gravity_scale: f32,
pub body_id: i32,
pub flags: u32,
}Expand description
Body simulation data used for integration of position and velocity. Transform data used for collision and solver preparation. (b3BodySim)
Fields§
§transform: WorldTransformTransform for body origin (double translation in large world mode)
center: PosCenter of mass position in world space
rotation0: QuatPrevious rotation and COM for TOI
center0: Pos§local_center: Vec3Location of center of mass relative to the body origin
force: Vec3§torque: Vec3§inv_mass: f32§inv_inertia_local: Matrix3Rotational inertia about the center of mass. World inverse inertia must be updated whenever the body rotation is modified.
inv_inertia_world: Matrix3§min_extent: f32§max_extent: Vec3§max_angular_velocity: f32§linear_damping: f32§angular_damping: f32§gravity_scale: f32§body_id: i32Index of Body
flags: u32body_flags bits
Trait Implementations§
impl Copy for BodySim
impl StructuralPartialEq for BodySim
Auto Trait Implementations§
impl Freeze for BodySim
impl RefUnwindSafe for BodySim
impl Send for BodySim
impl Sync for BodySim
impl Unpin for BodySim
impl UnsafeUnpin for BodySim
impl UnwindSafe for BodySim
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