pub struct DebugDrawFlags {
pub draw_aabbs: bool,
pub draw_centers: bool,
pub draw_velocities: bool,
pub draw_contacts: bool,
pub draw_contact_normals: bool,
pub draw_joints: bool,
pub draw_bvh: bool,
pub draw_axes: bool,
}Expand description
What to draw in debug mode
Fields§
§draw_aabbs: boolDraw body AABBs: the box the broad-phase tests for each body (a cube centred on the body position with half-extent equal to its collision radius), in the body color. Bodies without a collision radius take part in no collision and draw no box.
draw_centers: boolDraw body centers of mass
draw_velocities: boolDraw velocity vectors
draw_contacts: boolDraw contact points
draw_contact_normals: boolDraw contact normals
draw_joints: boolDraw joint connections: a cyan line between the two bodies of every distance constraint and every joint of the world’s joint list.
draw_bvh: boolDraw BVH nodes: the boxes of the bounding volume hierarchy the default
broad-phase builds from the body boxes of draw_aabbs in the current
state, in magenta (node boxes are kept on the integer lattice, so they
are the bodies’ boxes rounded outward to whole units).
draw_axes: boolDraw body axes (local coordinate frame)
Trait Implementations§
Source§impl Clone for DebugDrawFlags
impl Clone for DebugDrawFlags
impl Copy for DebugDrawFlags
Source§impl Debug for DebugDrawFlags
impl Debug for DebugDrawFlags
Source§impl Default for DebugDrawFlags
impl Default for DebugDrawFlags
impl Eq for DebugDrawFlags
Source§impl PartialEq for DebugDrawFlags
impl PartialEq for DebugDrawFlags
impl StructuralPartialEq for DebugDrawFlags
Auto Trait Implementations§
impl Freeze for DebugDrawFlags
impl RefUnwindSafe for DebugDrawFlags
impl Send for DebugDrawFlags
impl Sync for DebugDrawFlags
impl Unpin for DebugDrawFlags
impl UnsafeUnpin for DebugDrawFlags
impl UnwindSafe for DebugDrawFlags
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more