pub struct JointState { /* private fields */ }Implementations§
Source§impl JointState
impl JointState
pub fn new( kind: ConstraintKind, coordinates: [f32; 6], rates: [f32; 6], impulses: [f32; 6], ) -> Self
pub const fn kind(&self) -> ConstraintKind
pub const fn dofs(&self) -> &'static [JointDof]
pub fn coordinate(&self, dof: JointDof) -> f32
pub fn rate(&self, dof: JointDof) -> f32
pub fn impulse(&self, dof: JointDof) -> f32
Trait Implementations§
Source§impl Clone for JointState
impl Clone for JointState
Source§fn clone(&self) -> JointState
fn clone(&self) -> JointState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for JointState
Source§impl Debug for JointState
impl Debug for JointState
Source§impl PartialEq for JointState
impl PartialEq for JointState
impl StructuralPartialEq for JointState
Auto Trait Implementations§
impl Freeze for JointState
impl RefUnwindSafe for JointState
impl Send for JointState
impl Sync for JointState
impl Unpin for JointState
impl UnsafeUnpin for JointState
impl UnwindSafe for JointState
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