-
Notifications
You must be signed in to change notification settings - Fork 5
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
base: master
Are you sure you want to change the base?
Conversation
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same nphysics2d requires nalgebra
nazara_physics2d/src/lib.rs
Outdated
pub trait Number : From<f64> + RealField {} | ||
impl<T> Number for T where T: From<f64> + RealField {} |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
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/ |
No description provided.