# [−][src]Struct nphysics3d::joint::FixedJoint

A joint that does not allow any relative degrees of freedom.

## Methods

`impl<N: Real> FixedJoint<N>`

[src]

`impl<N: Real> FixedJoint<N>`

`pub fn new(pos_wrt_body: Isometry<N>) -> Self`

[src]

`pub fn new(pos_wrt_body: Isometry<N>) -> Self`

Create a joint that does not a allow any degrees of freedom between two multibody links.

The descendent attached to this joint will have a position maintained to `pos_wrt_pody`

relative to its parent.

## Trait Implementations

`impl<N: Real> Joint<N> for FixedJoint<N>`

[src]

`impl<N: Real> Joint<N> for FixedJoint<N>`

`fn clone(&self) -> Box<dyn Joint<N>>`

[src]

`fn clone(&self) -> Box<dyn Joint<N>>`

`fn ndofs(&self) -> usize`

[src]

`fn ndofs(&self) -> usize`

`fn body_to_parent(`

&self,

parent_shift: &Vector<N>,

body_shift: &Vector<N>

) -> Isometry<N>

[src]

`fn body_to_parent(`

&self,

parent_shift: &Vector<N>,

body_shift: &Vector<N>

) -> Isometry<N>

`fn update_jacobians(&mut self, _: &Vector<N>, _: &[N])`

[src]

`fn update_jacobians(&mut self, _: &Vector<N>, _: &[N])`

`fn jacobian(&self, _: &Isometry<N>, _: &mut JacobianSliceMut<N>)`

[src]

`fn jacobian(&self, _: &Isometry<N>, _: &mut JacobianSliceMut<N>)`

`fn jacobian_dot(&self, _: &Isometry<N>, _: &mut JacobianSliceMut<N>)`

[src]

`fn jacobian_dot(&self, _: &Isometry<N>, _: &mut JacobianSliceMut<N>)`

`fn jacobian_dot_veldiff_mul_coordinates(`

&self,

_: &Isometry<N>,

_: &[N],

_: &mut JacobianSliceMut<N>

)

[src]

`fn jacobian_dot_veldiff_mul_coordinates(`

&self,

_: &Isometry<N>,

_: &[N],

_: &mut JacobianSliceMut<N>

)

`fn integrate(&mut self, _: &IntegrationParameters<N>, _: &[N])`

[src]

`fn integrate(&mut self, _: &IntegrationParameters<N>, _: &[N])`

`fn apply_displacement(&mut self, _: &[N])`

[src]

`fn apply_displacement(&mut self, _: &[N])`

`fn jacobian_mul_coordinates(&self, _: &[N]) -> Velocity<N>`

[src]

`fn jacobian_mul_coordinates(&self, _: &[N]) -> Velocity<N>`

`fn jacobian_dot_mul_coordinates(&self, _: &[N]) -> Velocity<N>`

[src]

`fn jacobian_dot_mul_coordinates(&self, _: &[N]) -> Velocity<N>`

`fn default_damping(&self, _: &mut DVectorSliceMut<N>)`

[src]

`fn default_damping(&self, _: &mut DVectorSliceMut<N>)`

`fn nimpulses(&self) -> usize`

[src]

`fn nimpulses(&self) -> usize`

The maximum number of impulses needed by this joints for its constraints. Read more

`fn num_velocity_constraints(&self) -> usize`

[src]

`fn num_velocity_constraints(&self) -> usize`

Maximum number of velocity constrains that can be generated by this joint.

`fn velocity_constraints(`

&self,

_params: &IntegrationParameters<N>,

_multibody: &Multibody<N>,

_link: &MultibodyLink<N>,

_assembly_id: usize,

_dof_id: usize,

_ext_vels: &[N],

_ground_j_id: &mut usize,

_jacobians: &mut [N],

_velocity_constraints: &mut ConstraintSet<N>

)

[src]

`fn velocity_constraints(`

&self,

_params: &IntegrationParameters<N>,

_multibody: &Multibody<N>,

_link: &MultibodyLink<N>,

_assembly_id: usize,

_dof_id: usize,

_ext_vels: &[N],

_ground_j_id: &mut usize,

_jacobians: &mut [N],

_velocity_constraints: &mut ConstraintSet<N>

)

Initialize and generate velocity constraints to enforce, e.g., joint limits and motors.

`fn num_position_constraints(&self) -> usize`

[src]

`fn num_position_constraints(&self) -> usize`

The maximum number of non-linear position constraints that can be generated by this joint.

`fn position_constraint(`

&self,

_i: usize,

_multibody: &Multibody<N>,

_link: &MultibodyLink<N>,

_dof_id: usize,

_jacobians: &mut [N]

) -> Option<GenericNonlinearConstraint<N>>

[src]

`fn position_constraint(`

&self,

_i: usize,

_multibody: &Multibody<N>,

_link: &MultibodyLink<N>,

_dof_id: usize,

_jacobians: &mut [N]

) -> Option<GenericNonlinearConstraint<N>>

Initialize and generate the i-th position constraints to enforce, e.g., joint limits.

`impl<N: Copy + Real> Copy for FixedJoint<N>`

[src]

`impl<N: Copy + Real> Copy for FixedJoint<N>`

`impl<N: Clone + Real> Clone for FixedJoint<N>`

[src]

`impl<N: Clone + Real> Clone for FixedJoint<N>`

`fn clone(&self) -> FixedJoint<N>`

[src]

`fn clone(&self) -> FixedJoint<N>`

`fn clone_from(&mut self, source: &Self)`

1.0.0[src]

`fn clone_from(&mut self, source: &Self)`

Performs copy-assignment from `source`

. Read more

`impl<N: Debug + Real> Debug for FixedJoint<N>`

[src]

`impl<N: Debug + Real> Debug for FixedJoint<N>`

## Auto Trait Implementations

`impl<N> Send for FixedJoint<N> where`

N: Scalar,

`impl<N> Send for FixedJoint<N> where`

N: Scalar,

`impl<N> Sync for FixedJoint<N> where`

N: Scalar,

`impl<N> Sync for FixedJoint<N> where`

N: Scalar,

## Blanket Implementations

`impl<T> From for T`

[src]

`impl<T> From for T`

`impl<T, U> Into for T where`

U: From<T>,

[src]

`impl<T, U> Into for T where`

U: From<T>,

`impl<T> ToOwned for T where`

T: Clone,

[src]

`impl<T> ToOwned for T where`

T: Clone,

`impl<T, U> TryFrom for T where`

T: From<U>,

[src]

`impl<T, U> TryFrom for T where`

T: From<U>,

`type Error = !`

`try_from`

)The type returned in the event of a conversion error.

`fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>`

[src]

`fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>`

`impl<T> Borrow for T where`

T: ?Sized,

[src]

`impl<T> Borrow for T where`

T: ?Sized,

`impl<T> Any for T where`

T: 'static + ?Sized,

[src]

`impl<T> Any for T where`

T: 'static + ?Sized,

`fn get_type_id(&self) -> TypeId`

[src]

`fn get_type_id(&self) -> TypeId`

`impl<T, U> TryInto for T where`

U: TryFrom<T>,

[src]

`impl<T, U> TryInto for T where`

U: TryFrom<T>,

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

`try_from`

)The type returned in the event of a conversion error.

`fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>`

[src]

`fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>`

`impl<T> BorrowMut for T where`

T: ?Sized,

[src]

`impl<T> BorrowMut for T where`

T: ?Sized,

`fn borrow_mut(&mut self) -> &mut T`

[src]

`fn borrow_mut(&mut self) -> &mut T`

`impl<T> Downcast for T where`

T: Any,

`impl<T> Downcast for T where`

T: Any,

`fn into_any(self: Box<T>) -> Box<dyn Any + 'static>`

`fn into_any(self: Box<T>) -> Box<dyn Any + 'static>`

`fn as_any(&self) -> &(dyn Any + 'static)`

`fn as_any(&self) -> &(dyn Any + 'static)`

`fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)`

`fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)`

`impl<SS, SP> SupersetOf for SP where`

SS: SubsetOf<SP>,

`impl<SS, SP> SupersetOf for SP where`

SS: SubsetOf<SP>,

`fn to_subset(&self) -> Option<SS>`

`fn to_subset(&self) -> Option<SS>`

`fn is_in_subset(&self) -> bool`

`fn is_in_subset(&self) -> bool`

`unsafe fn to_subset_unchecked(&self) -> SS`

`unsafe fn to_subset_unchecked(&self) -> SS`

`fn from_subset(element: &SS) -> SP`

`fn from_subset(element: &SS) -> SP`

`impl<T> Same for T`

`impl<T> Same for T`

`type Output = T`

Should always be `Self`