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

Introduce PhysicsManager #70

Closed
bitbrain opened this issue May 24, 2017 · 0 comments
Closed

Introduce PhysicsManager #70

bitbrain opened this issue May 24, 2017 · 0 comments

Comments

@bitbrain
Copy link
Owner

bitbrain commented May 24, 2017

Introduce a new manager which allows to use Box2D in combination with GameObject instances.

For example:

Body body = getPhysicsManager()
   .newBody(new BodyDef())
   .withFixture(new FixtureDef())
   .withBody(new BodyDef())
   .withFixture(new FixtureDef())
   .withType("a game object type")
   .withMutator(new Mutator<GameObject>() { ... })
   .build();

The statement would register internally a new game object, link it to the Box2D context and automatically update the game objects data (position, rotation, scale etc.) respectively. To render the game object just use one of the existing renderers. (even animation rendering will work in combination with Box2D & Physics)

@bitbrain bitbrain added this to the Version 1.0.0 (Initial Release) milestone May 24, 2017
@bitbrain bitbrain modified the milestones: Version 1.0.0 (Initial Release), 0.5.0 - The Physics Update Mar 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant