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
}

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

impl Default for ChangeVisualShapeOptions[src]

Auto Trait Implementations

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> From<T> for T[src]

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

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

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

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