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
Auto Trait Implementations
impl RefUnwindSafe for ChangeVisualShapeOptions
impl Send for ChangeVisualShapeOptions
impl Sync for ChangeVisualShapeOptions
impl Unpin for ChangeVisualShapeOptions
impl UnwindSafe for ChangeVisualShapeOptions
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