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

Atom physics state #52

Open
erlend-sh opened this issue Jan 10, 2024 · 0 comments
Open

Atom physics state #52

erlend-sh opened this issue Jan 10, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@erlend-sh
Copy link
Contributor

Courtesy of @PieKing1215 :

when I was working on my falling sand stuff I set it up so each atom had a physics state (solid/powder/liquid/gas) separate from the material (dirt/stone/gold/etc)
so you could have atoms of solid gold or liquid gold or powder gold or whatever other combo
then you could set it up so the material has properties for melting/freezing/boiling point, friction, density, viscosity, etc that affect how it behaves in different physics states

just an alternate way to think about it vs making different materials for each state

I guess the downside though is that if there's some combination of state/material that you want to be unobtainable (say liquid grass) it'd still be representable.
so you'd have to depend on runtime behavior/tests to make it unobtainable (eg. make melting point be Option where None means can't melt, or something)

@erlend-sh erlend-sh changed the title Atoms physics state Atom physics state Jan 10, 2024
@Zac8668 Zac8668 added the enhancement New feature or request label Jan 14, 2024
@Zac8668 Zac8668 mentioned this issue Jan 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants