pub struct RigidBodyPose {
pub translation: Vec2,
pub rotation: Rotation2,
}Expand description
Authored body-origin pose in world units, independent of center-of-mass offset.
A teleport accepts non-unit 3D rotations when they can be normalized. Its
returned pose contains the actual committed rotation (wrapped in 2D).
See RigidBody::try_teleport and PhysicsWorld::try_teleport_body for
runnable reset and host interpolation recipes.
Fields§
§translation: Vec2§rotation: Rotation2Trait Implementations§
Source§impl Clone for RigidBodyPose
impl Clone for RigidBodyPose
Source§fn clone(&self) -> RigidBodyPose
fn clone(&self) -> RigidBodyPose
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 RigidBodyPose
impl Debug for RigidBodyPose
Source§impl PartialEq for RigidBodyPose
impl PartialEq for RigidBodyPose
impl Copy for RigidBodyPose
impl StructuralPartialEq for RigidBodyPose
Auto Trait Implementations§
impl Freeze for RigidBodyPose
impl RefUnwindSafe for RigidBodyPose
impl Send for RigidBodyPose
impl Sync for RigidBodyPose
impl Unpin for RigidBodyPose
impl UnwindSafe for RigidBodyPose
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