pub struct DistanceJointDef {Show 13 fields
pub base: JointDef,
pub length: f32,
pub enable_spring: bool,
pub lower_spring_force: f32,
pub upper_spring_force: f32,
pub hertz: f32,
pub damping_ratio: f32,
pub enable_limit: bool,
pub min_length: f32,
pub max_length: f32,
pub enable_motor: bool,
pub max_motor_force: f32,
pub motor_speed: f32,
}Expand description
Distance joint definition. Connects a point on body A with a point on body B by a segment. Useful for ropes and springs. (b3DistanceJointDef)
Fields§
§base: JointDef§length: f32§enable_spring: bool§lower_spring_force: f32§upper_spring_force: f32§hertz: f32§damping_ratio: f32§enable_limit: bool§min_length: f32§max_length: f32§enable_motor: bool§max_motor_force: f32§motor_speed: f32Trait Implementations§
Source§impl Clone for DistanceJointDef
impl Clone for DistanceJointDef
Source§fn clone(&self) -> DistanceJointDef
fn clone(&self) -> DistanceJointDef
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 DistanceJointDef
Source§impl Debug for DistanceJointDef
impl Debug for DistanceJointDef
Source§impl Default for DistanceJointDef
impl Default for DistanceJointDef
Source§impl PartialEq for DistanceJointDef
impl PartialEq for DistanceJointDef
impl StructuralPartialEq for DistanceJointDef
Auto Trait Implementations§
impl Freeze for DistanceJointDef
impl RefUnwindSafe for DistanceJointDef
impl Send for DistanceJointDef
impl Sync for DistanceJointDef
impl Unpin for DistanceJointDef
impl UnsafeUnpin for DistanceJointDef
impl UnwindSafe for DistanceJointDef
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