Table of Contents

Struct DebugDrawOptions

Namespace
Box3D
Assembly
Box3D.NET.dll

Selects what a call to Box3D.PhysicsWorld.Draw``1(``0@,Box3D.DebugDrawOptions@) emits.

public readonly record struct DebugDrawOptions : IEquatable<DebugDrawOptions>

Implements

Inherited Members

Remarks

Everything is off by default. Turning on only what is being investigated keeps both the emitted geometry and the cost down; drawing contacts and their features across a large world is not cheap.

Properties

Bounds

Gets the world region outside which nothing is drawn.

CategoryMask

Gets the shape categories to draw. Defaults to all of them.

Default

Gets the options with everything off, which is the starting point.

DrawAnchorA

Gets a value indicating whether to draw the anchor of each joint's first body.

DrawBodyNames

Gets a value indicating whether to draw body names.

DrawBounds

Gets a value indicating whether to draw the broad-phase bounding boxes.

DrawContactFeatures

Gets a value indicating whether to draw contact features.

DrawContactForces

Gets a value indicating whether to draw contact forces.

DrawContactNormals

Gets a value indicating whether to draw contact normals.

DrawContacts

Gets a value indicating whether to draw contact points.

DrawGraphColors

Gets a value indicating whether to colour bodies by constraint graph colour.

DrawIslands

Gets a value indicating whether to draw simulation islands.

DrawJointExtras

Gets a value indicating whether to draw additional joint detail.

DrawJoints

Gets a value indicating whether to draw joints.

DrawMass

Gets a value indicating whether to draw centres of mass.

DrawShapes

Gets a value indicating whether to draw the shapes themselves.

DrawSleep

Gets a value indicating whether to mark sleeping bodies.

ForceScale

Gets the scale applied when drawing forces.

JointScale

Gets the scale applied when drawing joints.