#[non_exhaustive]pub struct BodyPose {
pub id: BodyId,
pub position: RVec3,
pub rotation: Quat,
}Expand description
The pose of one awake body, as returned by PhysicsWorld::active_body_poses.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: BodyIdThe body.
position: RVec3The body’s origin in world space, as BodyRef::position (not its centre of mass).
rotation: QuatThe body’s rotation, as BodyRef::rotation.
Trait Implementations§
impl Copy for BodyPose
impl StructuralPartialEq for BodyPose
Auto Trait Implementations§
impl Freeze for BodyPose
impl RefUnwindSafe for BodyPose
impl Send for BodyPose
impl Sync for BodyPose
impl Unpin for BodyPose
impl UnsafeUnpin for BodyPose
impl UnwindSafe for BodyPose
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