Loading...
 
PhysicsDebug        

PhysicsDebug

Partially Obsolete

Note that the contents on this page are partially obsolete now that F7 and ctrl+F7 are used for debugging physics. However there are more features here that are not bound to keys so this page may still be useful.

Lua Interface

Call

 set_physics_debug(mode, true)

where 'mode' is one of

  • "DrawWireframe"
  • "DrawAabb"
  • "DrawFeaturesText"
  • "DrawContactPoints"
  • "NoDeactivation"
  • "NoHelpText"
  • "DrawText"
  • "ProfileTimings"
  • "EnableSatComparison"
  • "DisableBulletLCP"
  • "EnableCCD"
  • "DrawConstraints"
  • "DrawConstraintLimits"
  • "FastWireframe"

You can also do

 physics.debugWorld = true

to show more than just the active bodies, although this is obviously slower.

Category:Physics?