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

Unexpected default behavior for Body #99

Open
MartinSStewart opened this issue Oct 4, 2020 · 2 comments
Open

Unexpected default behavior for Body #99

MartinSStewart opened this issue Oct 4, 2020 · 2 comments

Comments

@MartinSStewart
Copy link
Contributor

I created a physics simulation and ran it but it appeared to be frozen. I lost a few minutes before realizing that bodies default to the static behavior. Maybe it would make more sense if defining a body always requires you to explicitly choose a behavior instead?

@w0rm
Copy link
Owner

w0rm commented Oct 4, 2020

@MartinSStewart I like this suggestion! It is more in line with the elm-3d-scene and elm-geometry API. Also it seems easier to calculate everything during the construction because the total mass is known. Do you think that we need to be able to change the mass after the body is created?

I actually think that @ianmackenzie already suggested this to me before. Will definitely consider for the next major release.

@MartinSStewart
Copy link
Contributor Author

I guess there might be use cases where the mass can change. Perhaps a "ground pound" move in a physics based fighting game would involve increasing the mass of a body before it hits the ground. Or something like Katamari where a sphere accumulates mass as it rolls over other physics objects.

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

No branches or pull requests

2 participants