[−][src]Struct box2d_rs::joints::b2_pulley_joint::B2pulleyJointDef
Pulley joint definition. This requires two ground anchors, two dynamic body anchor points, and a pulley ratio.
Fields
base: B2jointDef<D>
ground_anchor_a: B2vec2
The first ground anchor in world coordinates. This point never moves.
ground_anchor_b: B2vec2
The second ground anchor in world coordinates. This point never moves.
local_anchor_a: B2vec2
The local anchor point relative to body_a's origin.
local_anchor_b: B2vec2
The local anchor point relative to body_b's origin.
length_a: f32
The a reference length for the segment attached to body_a.
length_b: f32
The a reference length for the segment attached to body_b.
ratio: f32
The pulley ratio, used to simulate a block-and-tackle.
Implementations
impl<D: UserDataType> B2pulleyJointDef<D>
[src]
pub fn initialize(
&mut self,
body_a: BodyPtr<D>,
body_b: BodyPtr<D>,
ground_anchor_a: B2vec2,
ground_anchor_b: B2vec2,
anchor_a: B2vec2,
anchor_b: B2vec2,
ratio: f32
)
[src]
&mut self,
body_a: BodyPtr<D>,
body_b: BodyPtr<D>,
ground_anchor_a: B2vec2,
ground_anchor_b: B2vec2,
anchor_a: B2vec2,
anchor_b: B2vec2,
ratio: f32
)
initialize the bodies, anchors, lengths, max lengths, and ratio using the world anchors.
Trait Implementations
impl<D: Clone + UserDataType> Clone for B2pulleyJointDef<D>
[src]
pub fn clone(&self) -> B2pulleyJointDef<D>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<D: UserDataType> Default for B2pulleyJointDef<D>
[src]
Auto Trait Implementations
impl<D> !RefUnwindSafe for B2pulleyJointDef<D>
impl<D> !Send for B2pulleyJointDef<D>
impl<D> !Sync for B2pulleyJointDef<D>
impl<D> Unpin for B2pulleyJointDef<D> where
<D as UserDataType>::Joint: Unpin,
<D as UserDataType>::Joint: Unpin,
impl<D> !UnwindSafe for B2pulleyJointDef<D>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,