Trait nphysics2d::detection::joint::joint::Joint
[−]
[src]
pub trait Joint<N: Real, A> { fn anchor1(&self) -> &Anchor<N, A>; fn anchor2(&self) -> &Anchor<N, A>; fn anchor1_pos(&self) -> A; fn anchor2_pos(&self) -> A; }
Trait implemented by every joint.
Required Methods
fn anchor1(&self) -> &Anchor<N, A>
The first anchor affected by this joint.
fn anchor2(&self) -> &Anchor<N, A>
The second anchor affected by this joint.
fn anchor1_pos(&self) -> A
The first attach point in global coordinates.
fn anchor2_pos(&self) -> A
The second attach point in global coordinates.