Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
BodyManager::DrawSettings Struct Reference

#include <BodyManager.h>

Public Attributes

bool mDrawGetSupportFunction = false
 Draw the GetSupport() function, used for convex collision detection.
 
bool mDrawSupportDirection = false
 When drawing the support function, also draw which direction mapped to a specific support point.
 
bool mDrawGetSupportingFace = false
 Draw the faces that were found colliding during collision detection.
 
bool mDrawShape = true
 Draw the shapes of all bodies.
 
bool mDrawShapeWireframe = false
 When mDrawShape is true and this is true, the shapes will be drawn in wireframe instead of solid.
 
EShapeColor mDrawShapeColor = EShapeColor::MotionTypeColor
 Coloring scheme to use for shapes.
 
bool mDrawBoundingBox = false
 Draw a bounding box per body.
 
bool mDrawCenterOfMassTransform = false
 Draw the center of mass for each body.
 
bool mDrawWorldTransform = false
 Draw the world transform (which can be different than the center of mass) for each body.
 
bool mDrawVelocity = false
 Draw the velocity vector for each body.
 
bool mDrawMassAndInertia = false
 Draw the mass and inertia (as the box equivalent) for each body.
 
bool mDrawSleepStats = false
 Draw stats regarding the sleeping algorithm of each body.
 
bool mDrawSoftBodyVertices = false
 Draw the vertices of soft bodies.
 
bool mDrawSoftBodyVertexVelocities = false
 Draw the velocities of the vertices of soft bodies.
 
bool mDrawSoftBodyEdgeConstraints = false
 Draw the edge constraints of soft bodies.
 
bool mDrawSoftBodyBendConstraints = false
 Draw the bend constraints of soft bodies.
 
bool mDrawSoftBodyVolumeConstraints = false
 Draw the volume constraints of soft bodies.
 
bool mDrawSoftBodySkinConstraints = false
 Draw the skin constraints of soft bodies.
 
bool mDrawSoftBodyLRAConstraints = false
 Draw the LRA constraints of soft bodies.
 
bool mDrawSoftBodyRods = false
 Draw the rods of soft bodies.
 
bool mDrawSoftBodyRodStates = false
 Draw the rod states (orientation and angular velocity) of soft bodies.
 
bool mDrawSoftBodyRodBendTwistConstraints = false
 Draw the rod bend twist constraints of soft bodies.
 
bool mDrawSoftBodyPredictedBounds = false
 Draw the predicted bounds of soft bodies.
 
ESoftBodyConstraintColor mDrawSoftBodyConstraintColor = ESoftBodyConstraintColor::ConstraintType
 Coloring scheme to use for soft body constraints.
 

Detailed Description

Draw settings

Note that there are several debug drawing features that are not exposed through this interface since they use information that is only available deep inside the simulation update and are mostly there to facilitate debugging Jolt. These options use DebugRenderer::sInstance to draw.

E.g.:

Member Data Documentation

◆ mDrawBoundingBox

bool BodyManager::DrawSettings::mDrawBoundingBox = false

Draw a bounding box per body.

◆ mDrawCenterOfMassTransform

bool BodyManager::DrawSettings::mDrawCenterOfMassTransform = false

Draw the center of mass for each body.

◆ mDrawGetSupportFunction

bool BodyManager::DrawSettings::mDrawGetSupportFunction = false

Draw the GetSupport() function, used for convex collision detection.

◆ mDrawGetSupportingFace

bool BodyManager::DrawSettings::mDrawGetSupportingFace = false

Draw the faces that were found colliding during collision detection.

◆ mDrawMassAndInertia

bool BodyManager::DrawSettings::mDrawMassAndInertia = false

Draw the mass and inertia (as the box equivalent) for each body.

◆ mDrawShape

bool BodyManager::DrawSettings::mDrawShape = true

Draw the shapes of all bodies.

◆ mDrawShapeColor

EShapeColor BodyManager::DrawSettings::mDrawShapeColor = EShapeColor::MotionTypeColor

Coloring scheme to use for shapes.

◆ mDrawShapeWireframe

bool BodyManager::DrawSettings::mDrawShapeWireframe = false

When mDrawShape is true and this is true, the shapes will be drawn in wireframe instead of solid.

◆ mDrawSleepStats

bool BodyManager::DrawSettings::mDrawSleepStats = false

Draw stats regarding the sleeping algorithm of each body.

◆ mDrawSoftBodyBendConstraints

bool BodyManager::DrawSettings::mDrawSoftBodyBendConstraints = false

Draw the bend constraints of soft bodies.

◆ mDrawSoftBodyConstraintColor

ESoftBodyConstraintColor BodyManager::DrawSettings::mDrawSoftBodyConstraintColor = ESoftBodyConstraintColor::ConstraintType

Coloring scheme to use for soft body constraints.

◆ mDrawSoftBodyEdgeConstraints

bool BodyManager::DrawSettings::mDrawSoftBodyEdgeConstraints = false

Draw the edge constraints of soft bodies.

◆ mDrawSoftBodyLRAConstraints

bool BodyManager::DrawSettings::mDrawSoftBodyLRAConstraints = false

Draw the LRA constraints of soft bodies.

◆ mDrawSoftBodyPredictedBounds

bool BodyManager::DrawSettings::mDrawSoftBodyPredictedBounds = false

Draw the predicted bounds of soft bodies.

◆ mDrawSoftBodyRodBendTwistConstraints

bool BodyManager::DrawSettings::mDrawSoftBodyRodBendTwistConstraints = false

Draw the rod bend twist constraints of soft bodies.

◆ mDrawSoftBodyRods

bool BodyManager::DrawSettings::mDrawSoftBodyRods = false

Draw the rods of soft bodies.

◆ mDrawSoftBodyRodStates

bool BodyManager::DrawSettings::mDrawSoftBodyRodStates = false

Draw the rod states (orientation and angular velocity) of soft bodies.

◆ mDrawSoftBodySkinConstraints

bool BodyManager::DrawSettings::mDrawSoftBodySkinConstraints = false

Draw the skin constraints of soft bodies.

◆ mDrawSoftBodyVertexVelocities

bool BodyManager::DrawSettings::mDrawSoftBodyVertexVelocities = false

Draw the velocities of the vertices of soft bodies.

◆ mDrawSoftBodyVertices

bool BodyManager::DrawSettings::mDrawSoftBodyVertices = false

Draw the vertices of soft bodies.

◆ mDrawSoftBodyVolumeConstraints

bool BodyManager::DrawSettings::mDrawSoftBodyVolumeConstraints = false

Draw the volume constraints of soft bodies.

◆ mDrawSupportDirection

bool BodyManager::DrawSettings::mDrawSupportDirection = false

When drawing the support function, also draw which direction mapped to a specific support point.

◆ mDrawVelocity

bool BodyManager::DrawSettings::mDrawVelocity = false

Draw the velocity vector for each body.

◆ mDrawWorldTransform

bool BodyManager::DrawSettings::mDrawWorldTransform = false

Draw the world transform (which can be different than the center of mass) for each body.


The documentation for this struct was generated from the following file: