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

Built in Physics System #19

Open
scottbigbrain opened this issue Oct 20, 2020 · 5 comments
Open

Built in Physics System #19

scottbigbrain opened this issue Oct 20, 2020 · 5 comments

Comments

@scottbigbrain
Copy link
Contributor

I suggest that work should be started on making a built in physics system.
There are several bindings for things like chipmunk that could be used, but I propose that we could build one for GameZero. I have found the beginnings of a Julia Physics System called Matter.jl that could be used to do this.

@aviks
Copy link
Owner

aviks commented Oct 21, 2020

Integration with Matter.jl will be a good idea.

@dustyirwin
Copy link
Contributor

dustyirwin commented Oct 21, 2020

I really like this idea. Would this be a new dependency for GameZero or should we ingest the code and make it built-in?
Personally, I'm leaning towards importing it as a dependency.

@scottbigbrain
Copy link
Contributor Author

scottbigbrain commented Oct 22, 2020

Matter.jl isn't fully functioning yet, so building the code in might be a good way to go so that we can shape it to the needs of GameZero.jl. On the other hand, having it built in would make GameZero.jl a larger package.

I think what would work really well is to have built in support for Matter.jl so that if the person did not have Matter.jl then GameZero.jl would ignore physics stuff, but if the user had Matter.jl then it would automatically make a world and engine and simplify the creation and rendering of physics objects.

Either way, if we use Matter.jl then we would have to finish building the physics system.

@aviks
Copy link
Owner

aviks commented Oct 22, 2020

To begin with, it would be good to get some example games built with Matter.jl with the existing actor system. That will hopefully give us some ideas on what a good API for this should be inside GameZero.

@scottbigbrain
Copy link
Contributor Author

Okay, just remember that the only part of Matter.jl that is currently functional is the vector.jl and vertex.jl, the others are still in development.

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

3 participants