pub struct DebugRenderStyle {
Show 17 fields pub subdivisions: u32, pub border_subdivisions: u32, pub collider_dynamic_color: [f32; 4], pub collider_fixed_color: [f32; 4], pub collider_kinematic_color: [f32; 4], pub collider_parentless_color: [f32; 4], pub impulse_joint_anchor_color: [f32; 4], pub impulse_joint_separation_color: [f32; 4], pub multibody_joint_anchor_color: [f32; 4], pub multibody_joint_separation_color: [f32; 4], pub sleep_color_multiplier: [f32; 4], pub disabled_color_multiplier: [f32; 4], pub rigid_body_axes_length: f32, pub contact_depth_color: [f32; 4], pub contact_normal_color: [f32; 4], pub contact_normal_length: f32, pub collider_aabb_color: [f32; 4],
}
Expand description

Style used for computing colors when rendering the scene.

Fields§

§subdivisions: u32

The number of subdivision used to approximate the curved parts of a shape with smooth faces.

§border_subdivisions: u32

The number of subdivision used to approimate the curved borders of round shapes.

§collider_dynamic_color: [f32; 4]

The color of colliders attached to dynamic rigid-bodies.

§collider_fixed_color: [f32; 4]

The color of colliders attached to fixed rigid-bodies.

§collider_kinematic_color: [f32; 4]

The color of colliders attached to kinematic rigid-bodies.

§collider_parentless_color: [f32; 4]

The color of colliders not attached to any rigid-body.

§impulse_joint_anchor_color: [f32; 4]

The color of the line between a rigid-body’s center-of-mass and the anchors of its attached impulse joints.

§impulse_joint_separation_color: [f32; 4]

The color of the line between the two anchors of an impulse joint.

§multibody_joint_anchor_color: [f32; 4]

The color of the line between a rigid-body’s center-of-mass and the anchors of its attached multibody joints.

§multibody_joint_separation_color: [f32; 4]

The color of the line between the two anchors of a multibody joint.

§sleep_color_multiplier: [f32; 4]

If a rigid-body is sleeping, its attached entities will have their colors multiplied by this array. (For a joint, both attached rigid-bodies must be sleeping or non-dynamic for this multiplier to be applied).

§disabled_color_multiplier: [f32; 4]

If a rigid-body is disabled, its attached entities will have their colors multiplied by this array. (For a joint, both attached rigid-bodies must be disabled for this multiplier to be applied).

§rigid_body_axes_length: f32

The length of the local coordinate axes rendered for a rigid-body.

§contact_depth_color: [f32; 4]

The collor for the segments joining the two contact points.

§contact_normal_color: [f32; 4]

The color of the contact normals.

§contact_normal_length: f32

The length of the contact normals.

§collider_aabb_color: [f32; 4]

The color of the colliders Aabbs.

Trait Implementations§

source§

impl Clone for DebugRenderStyle

source§

fn clone(&self) -> DebugRenderStyle

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for DebugRenderStyle

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for DebugRenderStyle

source§

fn default() -> DebugRenderStyle

Returns the “default value” for a type. Read more
source§

impl PartialEq for DebugRenderStyle

source§

fn eq(&self, other: &DebugRenderStyle) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for DebugRenderStyle

source§

impl StructuralPartialEq for DebugRenderStyle

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T, U> AsBindGroupShaderType<U> for T
where U: ShaderType, &'a T: for<'a> Into<U>,

§

fn as_bind_group_shader_type(&self, _images: &RenderAssets<Image>) -> U

Return the T [ShaderType] for self. When used in [AsBindGroup] derives, it is safe to assume that all images in self exist.
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Downcast<T> for T

§

fn downcast(&self) -> &T

§

impl<T> Downcast for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.
§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
§

fn as_any(&self) -> &(dyn Any + 'static)

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromWorld for T
where T: Default,

§

fn from_world(_world: &mut World) -> T

Creates Self using data from the given [World].
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

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

impl<T> Same for T

§

type Output = T

Should always be Self
§

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

§

fn to_subset(&self) -> Option<SS>

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

fn is_in_subset(&self) -> bool

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

fn to_subset_unchecked(&self) -> SS

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

fn from_subset(element: &SS) -> SP

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

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> TypeData for T
where T: 'static + Send + Sync + Clone,

§

fn clone_type_data(&self) -> Box<dyn TypeData>

§

impl<T> Upcast<T> for T

§

fn upcast(&self) -> Option<&T>

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> Scalar for T
where T: 'static + Clone + PartialEq + Debug,

§

impl<T> Settings for T
where T: 'static + Send + Sync,

§

impl<T> WasmNotSend for T
where T: Send,

§

impl<T> WasmNotSendSync for T
where T: WasmNotSend + WasmNotSync,

§

impl<T> WasmNotSync for T
where T: Sync,