Code: Select all
debugDrawPhysics <bool> [bool=true] [float=0.5]
Param 2: [bool] true = fill the volumes, false = draw wireframe (optional, default is true)
Param 3: [float] the transparency of the filling (if param 2 is true) with 0 = invisible and 1 = solid (optional, default is 0.5)
Examples:
Code: Select all
debugDrawPhysics true # enable visualization
debugDrawPhysics true false # enable visualization with wireframe
debugDrawPhysics true true 0.95 # enable visualization with almost solid filled volumes
The performance is rather bad, so you better don't use this in a level with lots of objects.
And this is how it looks: