Struct rubullet::ChangeVisualShapeOptions[][src]

pub struct ChangeVisualShapeOptions {
    pub shape: VisualId,
    pub texture_id: Option<TextureId>,
    pub rgba_color: Option<[f64; 4]>,
    pub specular_color: Option<[f64; 3]>,
    // some fields omitted
}
Expand description

This struct keeps the information to change a visual shape with the change_visual_shape method.

Fields

shape: VisualId

Experimental for internal use, recommended ignore shapeIndex or leave it -1. Intention is to let you pick a specific shape index to modify, since URDF (and SDF etc)

texture_id: Option<TextureId>

texture unique id, as returned by load_texture method

rgba_color: Option<[f64; 4]>

color components for RED, GREEN, BLUE and ALPHA, each in range [0..1]. Alpha has to be 0 (invisible) or 1 (visible) at the moment. Note that TinyRenderer doesn’t support transparency, but the GUI/EGL OpenGL3 renderer does.

specular_color: Option<[f64; 3]>

specular color components, RED, GREEN and BLUE, can be from 0 to large number (>100).

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.