Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an SFramework Physics Function to Enable Debug #12

Open
mitchwadair opened this issue Oct 5, 2021 · 0 comments
Open

Add an SFramework Physics Function to Enable Debug #12

mitchwadair opened this issue Oct 5, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@mitchwadair
Copy link
Owner

mitchwadair commented Oct 5, 2021

Add a new function to physics to enable a debug setting. This setting (as of right now) would just add a collider visualizer to the game objects with some opacity level.
Example:

SF.physics.enableDebug() -- would set SF.physics.debug to true

Then any Physics object's awake function will add the visualizer if enabled, or if called during runtime (which I think would be discouraged) go through the physics object tree and add them to existing ones. Visualizer size would be determined by the Physics object's size settings.

As an aside, I think making the visualizers solid for this change would be beneficial, as they look a little bit odd when stretched

@mitchwadair mitchwadair added the enhancement New feature or request label Oct 5, 2021
@mitchwadair mitchwadair added this to To do in Physics Engine Improvement via automation Oct 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant