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

Draft PR for review : Add physics module to Nazara (physics engine: nphysics2d) #8

Open
wants to merge 21 commits into
base: master
Choose a base branch
from

Conversation

Faymoon
Copy link

@Faymoon Faymoon commented Dec 11, 2019

No description provided.


# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
Copy link
Contributor

Choose a reason for hiding this comment

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

Are minor versions very useful here? (thanks Lynix)

Copy link
Author

Choose a reason for hiding this comment

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

I juste left default cargo.toml

@@ -0,0 +1,34 @@
extern crate nazara_physics2d;
extern crate nalgebra;
extern crate ncollide2d;
Copy link
Contributor

Choose a reason for hiding this comment

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

The goal is not to avoid the use of the lib ncollide and to go through Nazara2d?

Copy link
Author

Choose a reason for hiding this comment

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

nphysics2d requires ncollide2d

use nazara_physics2d::material::Material;

use nalgebra::Vector2;
use nalgebra::Point2;
Copy link
Contributor

Choose a reason for hiding this comment

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

Same thing for nalgebra I think.

Copy link
Author

@Faymoon Faymoon Dec 11, 2019

Choose a reason for hiding this comment

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

Same nphysics2d requires nalgebra

Comment on lines 14 to 15
pub trait Number : From<f64> + RealField {}
impl<T> Number for T where T: From<f64> + RealField {}
Copy link
Contributor

Choose a reason for hiding this comment

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

Is putting things in lib.rs a good idea?

Copy link
Author

Choose a reason for hiding this comment

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

Done

@alexandre-janniaux
Copy link
Contributor

You can probably set a correct naming and description of what you're adding with this PR. ;)

Btw, github has a dedicated concept for draft PR, you can check all this here: https://github.blog/2019-02-14-introducing-draft-pull-requests/

@Faymoon Faymoon changed the title Draft PR for review Draft PR for review : Add physics module to Nazara (phsysics engine: nphysics2d) Dec 13, 2019
@Faymoon Faymoon changed the title Draft PR for review : Add physics module to Nazara (phsysics engine: nphysics2d) Draft PR for review : Add physics module to Nazara (physics engine: nphysics2d) Dec 13, 2019
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.

3 participants