Skip to content

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

Open
Faymoon wants to merge 21 commits into
NazaraEngine:masterfrom
Faymoon:master
Open

Draft PR for review : Add physics module to Nazara (physics engine: nphysics2d)#8
Faymoon wants to merge 21 commits into
NazaraEngine:masterfrom
Faymoon:master

Conversation

@Faymoon

@Faymoon Faymoon commented Dec 11, 2019

Copy link
Copy Markdown

No description provided.


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

[dependencies]

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

@Faymoon Faymoon Dec 11, 2019

Copy link
Copy Markdown
Author

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 thread nazara_physics2d/src/lib.rs Outdated
Comment on lines +14 to +15
pub trait Number : From<f64> + RealField {}
impl<T> Number for T where T: From<f64> + RealField {} No newline at end of file

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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