pub struct MotorJoint {Show 23 fields
pub linear_velocity: Vec2,
pub max_velocity_force: f32,
pub angular_velocity: f32,
pub max_velocity_torque: f32,
pub linear_hertz: f32,
pub linear_damping_ratio: f32,
pub max_spring_force: f32,
pub angular_hertz: f32,
pub angular_damping_ratio: f32,
pub max_spring_torque: f32,
pub linear_velocity_impulse: Vec2,
pub angular_velocity_impulse: f32,
pub linear_spring_impulse: Vec2,
pub angular_spring_impulse: f32,
pub linear_spring: Softness,
pub angular_spring: Softness,
pub index_a: i32,
pub index_b: i32,
pub frame_a: Transform,
pub frame_b: Transform,
pub delta_center: Vec2,
pub linear_mass: Mat22,
pub angular_mass: f32,
}Expand description
(b2MotorJoint)
Fields§
§linear_velocity: Vec2§max_velocity_force: f32§angular_velocity: f32§max_velocity_torque: f32§linear_hertz: f32§linear_damping_ratio: f32§max_spring_force: f32§angular_hertz: f32§angular_damping_ratio: f32§max_spring_torque: f32§linear_velocity_impulse: Vec2§angular_velocity_impulse: f32§linear_spring_impulse: Vec2§angular_spring_impulse: f32§linear_spring: Softness§angular_spring: Softness§index_a: i32§index_b: i32§frame_a: Transform§frame_b: Transform§delta_center: Vec2§linear_mass: Mat22§angular_mass: f32Trait Implementations§
Source§impl Clone for MotorJoint
impl Clone for MotorJoint
Source§fn clone(&self) -> MotorJoint
fn clone(&self) -> MotorJoint
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 MotorJoint
Source§impl Debug for MotorJoint
impl Debug for MotorJoint
Source§impl Default for MotorJoint
impl Default for MotorJoint
Source§impl PartialEq for MotorJoint
impl PartialEq for MotorJoint
impl StructuralPartialEq for MotorJoint
Auto Trait Implementations§
impl Freeze for MotorJoint
impl RefUnwindSafe for MotorJoint
impl Send for MotorJoint
impl Sync for MotorJoint
impl Unpin for MotorJoint
impl UnsafeUnpin for MotorJoint
impl UnwindSafe for MotorJoint
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