Skip to content
This repository has been archived by the owner on Mar 5, 2021. It is now read-only.

[feature] Option to display colliders at runtime #151

Open
Ikalou opened this issue Oct 14, 2016 · 2 comments
Open

[feature] Option to display colliders at runtime #151

Ikalou opened this issue Oct 14, 2016 · 2 comments

Comments

@Ikalou
Copy link
Contributor

Ikalou commented Oct 14, 2016

I think it would be nice to have the option to display colliders at runtime to help diagnose some issues in physics based games.

capture du 2016-10-14 18-24-17

I'm not sure how it should be implemented:

  • should it be a global switch or a per-body switch
  • should it be per physics engine or for all of them
  • should it be exposed in the editor or in code only

For instance, would something like this be a good base for the an implementation in the p2 plugin ?
GaetanRole/superpowers-game@master...GaetanRole:p2js-debug

Thanks for your input.

@bilou84
Copy link
Contributor

bilou84 commented Oct 15, 2016

That would be very helpful indeed. I would go with a global switch, like a debug mode.
We kinda already have that with the second run button that automatically open the dev tools so maybe we can use this information?
Or maybe a per plugin option is better, not completly fixed on that.

It would be nice if that could be a per user choice, so if someone wants to see the bodies to debug something, other people on the project can still run the game at the same time without them. So maybe using the local information of the "debug mode" is a better way to do it.

The implementation you linked went for a per-body switch so I guess that would need quite a bit of change before being ready to be merged.

@Ikalou
Copy link
Contributor Author

Ikalou commented Oct 15, 2016

I agree with you. We're using the (rough) patch above at work to help with testing, but it's not the best way to do this.

I won't be able to look into it any time soon, so it's up for grabs if anyone is interested in that :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants