cargo fmt一遍文件
This commit is contained in:
parent
dd8833d0c6
commit
ba9750e265
@ -6,10 +6,10 @@
|
|||||||
* -------------------------------
|
* -------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
mod sr1_render;
|
mod render;
|
||||||
mod simulator;
|
mod simulator;
|
||||||
mod sr1_data;
|
mod sr1_data;
|
||||||
mod render;
|
mod sr1_render;
|
||||||
mod types;
|
mod types;
|
||||||
|
|
||||||
use pyo3::prelude::*;
|
use pyo3::prelude::*;
|
||||||
|
@ -6,8 +6,8 @@
|
|||||||
* -------------------------------
|
* -------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
use rapier2d_f64::prelude::*;
|
|
||||||
use pyo3::prelude::*;
|
use pyo3::prelude::*;
|
||||||
|
use rapier2d_f64::prelude::*;
|
||||||
|
|
||||||
#[pyfunction]
|
#[pyfunction]
|
||||||
#[pyo3(name = "simluation")]
|
#[pyo3(name = "simluation")]
|
||||||
@ -59,10 +59,7 @@ pub fn simluation() -> PyResult<()> {
|
|||||||
);
|
);
|
||||||
|
|
||||||
let ball_body = &rigid_body_set[ball_body_handle];
|
let ball_body = &rigid_body_set[ball_body_handle];
|
||||||
println!(
|
println!("Ball altitude: {}", ball_body.translation().y);
|
||||||
"Ball altitude: {}",
|
|
||||||
ball_body.translation().y
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user