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

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

Checks if self is actually part of its subset T (and can be converted to it).

Use with care! Same as self.to_subset but without any property checks. Always succeeds.

The inclusion map: converts self to the equivalent element of its superset.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.