[][src]Struct rapier3d::dynamics::BallJoint

pub struct BallJoint {
    pub local_anchor1: Point<Real>,
    pub local_anchor2: Point<Real>,
    pub impulse: Vector<Real>,
}

A joint that removes all relative linear motion between a pair of points on two bodies.

Fields

local_anchor1: Point<Real>

Where the ball joint is attached on the first body, expressed in the first body local frame.

local_anchor2: Point<Real>

Where the ball joint is attached on the first body, expressed in the first body local frame.

impulse: Vector<Real>

The impulse applied by this joint on the first body.

The impulse applied to the second body is given by -impulse.

Implementations

impl BallJoint[src]

pub fn new(local_anchor1: Point<Real>, local_anchor2: Point<Real>) -> Self[src]

Creates a new Ball joint from two anchors given on the local spaces of the respective bodies.

Trait Implementations

impl Clone for BallJoint[src]

impl Copy for BallJoint[src]

impl From<BallJoint> for JointParams[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,