Skip to content

Add basic physics engine#29

Draft
robertgoss wants to merge 3 commits intomainfrom
gossr/phys
Draft

Add basic physics engine#29
robertgoss wants to merge 3 commits intomainfrom
gossr/phys

Conversation

@robertgoss
Copy link
Collaborator

Add a basic physics engine (that for now does a minor positional update) and only works on spheres.

This is:

  1. Unoptimized
  2. Only works on spheres
  3. Doesn't deal with rotation of objects
  4. Has a very naive solver

I have added a invoker 'p' which will simulate 0.25s of movement clear the render and start rendering again - mostly for testing.

@robertgoss
Copy link
Collaborator Author

Note testing this currently crashes with a KeyError but my mojo debugger seems to not be able to add breakpoints at the moment.

It also needs unittests and comments.

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

Successfully merging this pull request may close these issues.

1 participant