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

Lib docs Doctests, SimplePosition, Amethyst integration, external forces, body synchronization #6

Merged
merged 10 commits into from
Jun 23, 2019

Conversation

distransient
Copy link
Member

@distransient distransient commented Jun 17, 2019

  • Moves examples from README.md into library docs, now compiling correctly as doctests
  • Adds SimplePosition struct for easy Isometry+Position usage
  • Integrates Amethyst Transforms for usage with Position trait with feature amethyst_core
  • Adds method apply_external_force for applying (cumulative) external forces to PhysicsBodys
  • Adds synchronization of PhysicsBodys from physics world, renaming SyncPositionsFromPhysicsSystem to SyncBodiesFromPhysicsSystem to make this clear.
  • Re-exports ncollide and nphysics while also cleaning up namespace and use statements.

NOTE: This PR (probably) leaves all our FlaggedStorages dirty with writes. This may be fixed later on since it's really only an optimization.

The version is incremented to 0.3 in this PR, so when it is merged, we should publish.

@distransient distransient changed the title Move usage to library docs and add SimplePosition Move usage to library docs & add SimplePosition+amethyst Transform Jun 17, 2019
@distransient distransient changed the title Move usage to library docs & add SimplePosition+amethyst Transform Lib docs Doctests, SimplePosition, Amethyst integration, external forces, body synchronization Jun 21, 2019
src/bodies.rs Outdated Show resolved Hide resolved
@bamling bamling self-requested a review June 23, 2019 14:41
Copy link
Collaborator

@bamling bamling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@distransient distransient merged commit ba429cd into amethyst:master Jun 23, 2019
distransient added a commit that referenced this pull request Jun 23, 2019
- Moves examples from README.md into library docs, now compiling correctly as doctests
- Adds SimplePosition struct for easy Isometry+Position usage
- Integrates Amethyst Transforms for usage with Position trait with feature amethyst_core
- Adds method apply_external_force for applying (cumulative) external forces to PhysicsBodys
- Adds synchronization of PhysicsBodys from physics world, renaming SyncPositionsFromPhysicsSystem to SyncBodiesFromPhysicsSystem to make this clear.
- Re-exports ncollide and nphysics while also cleaning up namespace and use statements.
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.

2 participants