Was wondering if there was a way to programatically turn they physics debug outlines on and off (e.g. via a keystroke), or is it an ini-only type of thing?
I've tried the obvious places in the API:
orxPhysics
orxRender
orxDebug
Even grepped through the source. No luck.
Comments
Now if all you wanted to do was to do it on-the-fly in your game without having to modify the code, open the console and type: You can also add a command alias to make it easier, either at runtime via the console: Or via your config file: And then use it in the console with:
EDIT: You can also list all aliases in the console with:
Is that key-binding hard-coded in?
One can also use it to make a full dump of the config values into a separate file or even for saving config data in their originating file after tweaking them (but in that case comments and text formatting will be lost).