pub struct JointMotor {
pub target_velocity: f32,
pub max_force: f32,
}Expand description
Velocity-driven motor parameters for a revolute or prismatic joint.
Fields§
§target_velocity: f32Target velocity: radians/second for revolute, units/second for prismatic.
max_force: f32Maximum force the motor may apply to reach the target.
Trait Implementations§
Source§impl Clone for JointMotor
impl Clone for JointMotor
Source§fn clone(&self) -> JointMotor
fn clone(&self) -> JointMotor
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 JointMotor
Source§impl Debug for JointMotor
impl Debug for JointMotor
Source§impl PartialEq for JointMotor
impl PartialEq for JointMotor
impl StructuralPartialEq for JointMotor
Auto Trait Implementations§
impl Freeze for JointMotor
impl RefUnwindSafe for JointMotor
impl Send for JointMotor
impl Sync for JointMotor
impl Unpin for JointMotor
impl UnsafeUnpin for JointMotor
impl UnwindSafe for JointMotor
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