pub struct PulleyJointDef {
pub body_a: BodyHandle,
pub body_b: BodyHandle,
pub collide_connected: bool,
pub ground_anchor_a: Vec2,
pub ground_anchor_b: Vec2,
pub local_anchor_a: Vec2,
pub local_anchor_b: Vec2,
pub length_a: f32,
pub length_b: f32,
pub ratio: f32,
}
Fields§
§body_a: BodyHandle
§body_b: BodyHandle
§collide_connected: bool
§ground_anchor_a: Vec2
§ground_anchor_b: Vec2
§local_anchor_a: Vec2
§local_anchor_b: Vec2
§length_a: f32
§length_b: f32
§ratio: f32
Implementations§
source§impl PulleyJointDef
impl PulleyJointDef
pub fn new(body_a: BodyHandle, body_b: BodyHandle) -> PulleyJointDef
pub fn init( &mut self, body_a: BodyHandle, body_b: BodyHandle, ground_a: Vec2, ground_b: Vec2, anchor_a: &Vec2, anchor_b: &Vec2, ratio: f32 )
Trait Implementations§
source§impl JointDef for PulleyJointDef
impl JointDef for PulleyJointDef
fn joint_type() -> JointTypewhere
Self: Sized,
Auto Trait Implementations§
impl RefUnwindSafe for PulleyJointDef
impl Send for PulleyJointDef
impl Sync for PulleyJointDef
impl Unpin for PulleyJointDef
impl UnwindSafe for PulleyJointDef
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