pub struct DistanceJointDef {
pub body_a: BodyHandle,
pub body_b: BodyHandle,
pub collide_connected: bool,
pub local_anchor_a: Vec2,
pub local_anchor_b: Vec2,
pub length: f32,
pub frequency: f32,
pub damping_ratio: f32,
}
Fields§
§body_a: BodyHandle
§body_b: BodyHandle
§collide_connected: bool
§local_anchor_a: Vec2
§local_anchor_b: Vec2
§length: f32
§frequency: f32
§damping_ratio: f32
Implementations§
source§impl DistanceJointDef
impl DistanceJointDef
pub fn new(body_a: BodyHandle, body_b: BodyHandle) -> DistanceJointDef
pub fn init<U: UserDataTypes>( &mut self, world: &World<U>, body_a: BodyHandle, body_b: BodyHandle, anchor_a: &Vec2, anchor_b: &Vec2 )
pub fn try_init<U: UserDataTypes>( &mut self, world: &World<U>, body_a: BodyHandle, body_b: BodyHandle, anchor_a: &Vec2, anchor_b: &Vec2 ) -> Option<()>
Trait Implementations§
source§impl JointDef for DistanceJointDef
impl JointDef for DistanceJointDef
fn joint_type() -> JointTypewhere
Self: Sized,
Auto Trait Implementations§
impl RefUnwindSafe for DistanceJointDef
impl Send for DistanceJointDef
impl Sync for DistanceJointDef
impl Unpin 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