gerich-home / box2dnet Goto Github PK
View Code? Open in Web Editor NEWPlain port of JBox2D (no XNA)
Plain port of JBox2D (no XNA)
Well, porting of jbox2d seems to be almost completed.
Of course it needs a lot of work to be performed to check correctness of our results.
But it will be boring if we can't see our framework in action, so we need to port testbed.
Java version proposes MVC architecture.
View is a panel where everything is drawn.
Model is just a collection of tests and categories and currently pressed keys and mouse position.
Controller makes them work together. It listens view and change model and updates view about changes in model.
Moreover it runs simulation thread which makes time steps in the current test.
I think we should use MVVM pattern instead of MVC, so I'll try to rewrite testbed.
In MVVM there are 3 layers:
Model - like in MVC
ViewModel - say's to View which actions it can perform and what properties it has.
View - activates ViewModel's actions and reads or changes properties of ViewModel.
One of arguable thing is that in MVVM ViewModel shouldn't know anything about View. View should process key presses and just tell to ViewModel what should it do (which action should be executed). ViewModel (and model) shouldn't draw anything in View directly. View should ask ViewModel what to draw and draw it. This conflicts to concept of DebugDraw in box2d.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.