Struct rubullet::ChangeConstraintOptions [−][src]
pub struct ChangeConstraintOptions { pub joint_child_pivot: Option<Vector3<f64>>, pub joint_child_frame_orientation: Option<UnitQuaternion<f64>>, pub max_force: Option<f64>, pub gear_ratio: Option<f64>, pub gear_aux_link: Option<usize>, pub relative_position_target: Option<f64>, pub erp: Option<f64>, }
Expand description
contains the parameters for change_constraint
method.
Fields
joint_child_pivot: Option<Vector3<f64>>
updated child pivot, see create_constraint
joint_child_frame_orientation: Option<UnitQuaternion<f64>>
updated child frame orientation as quaternion
max_force: Option<f64>
maximum force that constraint can apply
gear_ratio: Option<f64>
the ratio between the rates at which the two gears rotate
gear_aux_link: Option<usize>
In some cases, such as a differential drive, a third (auxiliary) link is used as reference pose.
relative_position_target: Option<f64>
the relative position target offset between two gears
erp: Option<f64>
constraint error reduction parameter
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for ChangeConstraintOptions
impl Send for ChangeConstraintOptions
impl Sync for ChangeConstraintOptions
impl Unpin for ChangeConstraintOptions
impl UnwindSafe for ChangeConstraintOptions
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.
pub fn vzip(self) -> V