[][src]Struct nphysics3d::joint::RectangularJoint

pub struct RectangularJoint<N: RealField> { /* fields omitted */ }

A joint that allows two translational degrees of freedom.

Methods

impl<N: RealField> RectangularJoint<N>[src]

pub fn new(
    axis1: Unit<Vector3<N>>,
    axis2: Unit<Vector3<N>>,
    offset1: N,
    offset2: N
) -> Self
[src]

Creates a new rectangular joint allowing relative translations anlon the two provided axii.Isometry3

Both axii are expressed in the local coordinate frame on the attached multibody links.

impl<N: RealField> RectangularJoint<N>[src]

pub fn min_offset_1(&self) -> Option<N>[src]

The lower limit of the relative translational displacement of the attached multibody links along the joint axis.

pub fn max_offset_1(&self) -> Option<N>[src]

The upper limit of the relative translational displacement of the attached multibody links along the joint axis.

pub fn disable_min_offset_1(&mut self)[src]

Disable the lower limit of the relative translational displacement of the attached multibody links along the joint axis.

pub fn disable_max_offset_1(&mut self)[src]

Disable the upper limit of the relative translational displacement of the attached multibody links along the joint axis.

pub fn enable_min_offset_1(&mut self, limit: N)[src]

Set the lower limit of the relative translational displacement of the attached multibody links along the joint axis.

pub fn enable_max_offset_1(&mut self, limit: N)[src]

Set the upper limit of the relative translational displacement of the attached multibody links along the joint axis.

pub fn is_linear_motor_enabled_1(&self) -> bool[src]

Returns true if the joint translational motor is enabled.

pub fn enable_linear_motor_1(&mut self)[src]

Enable the joint translational motor.

pub fn disable_linear_motor_1(&mut self)[src]

Disable the joint translational motor.

pub fn desired_linear_motor_velocity_1(&self) -> N[src]

The desired relative translational velocity to be enforced by the joint motor.

pub fn set_desired_linear_motor_velocity_1(&mut self, vel: N)[src]

Set the desired relative translational velocity to be enforced by the joint motor.

pub fn max_linear_motor_force_1(&self) -> N[src]

The maximum force that can be output by the joint translational motor.

pub fn set_max_linear_motor_force_1(&mut self, force: N)[src]

Set the maximum force that can be output by the joint translational motor.

impl<N: RealField> RectangularJoint<N>[src]

pub fn min_offset_2(&self) -> Option<N>[src]

The lower limit of the relative translational displacement of the attached multibody links along the joint axis.

pub fn max_offset_2(&self) -> Option<N>[src]

The upper limit of the relative translational displacement of the attached multibody links along the joint axis.

pub fn disable_min_offset_2(&mut self)[src]

Disable the lower limit of the relative translational displacement of the attached multibody links along the joint axis.

pub fn disable_max_offset_2(&mut self)[src]

Disable the upper limit of the relative translational displacement of the attached multibody links along the joint axis.

pub fn enable_min_offset_2(&mut self, limit: N)[src]

Set the lower limit of the relative translational displacement of the attached multibody links along the joint axis.

pub fn enable_max_offset_2(&mut self, limit: N)[src]

Set the upper limit of the relative translational displacement of the attached multibody links along the joint axis.

pub fn is_linear_motor_enabled_2(&self) -> bool[src]

Returns true if the joint translational motor is enabled.

pub fn enable_linear_motor_2(&mut self)[src]

Enable the joint translational motor.

pub fn disable_linear_motor_2(&mut self)[src]

Disable the joint translational motor.

pub fn desired_linear_motor_velocity_2(&self) -> N[src]

The desired relative translational velocity to be enforced by the joint motor.

pub fn set_desired_linear_motor_velocity_2(&mut self, vel: N)[src]

Set the desired relative translational velocity to be enforced by the joint motor.

pub fn max_linear_motor_force2(&self) -> N[src]

The maximum force that can be output by the joint translational motor.

pub fn set_max_linear_motor_force_2(&mut self, force: N)[src]

Set the maximum force that can be output by the joint translational motor.

Trait Implementations

impl<N: Clone + RealField> Clone for RectangularJoint<N>[src]

impl<N: Copy + RealField> Copy for RectangularJoint<N>[src]

impl<N: Debug + RealField> Debug for RectangularJoint<N>[src]

impl<N: RealField> Joint<N> for RectangularJoint<N>[src]

Auto Trait Implementations

impl<N> RefUnwindSafe for RectangularJoint<N> where
    N: RefUnwindSafe + Scalar

impl<N> Send for RectangularJoint<N> where
    N: Scalar

impl<N> Sync for RectangularJoint<N> where
    N: Scalar

impl<N> Unpin for RectangularJoint<N> where
    N: Scalar + Unpin

impl<N> UnwindSafe for RectangularJoint<N> where
    N: Scalar + UnwindSafe

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Slottable for T where
    T: Copy
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

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>,