Skip to content

Commit 90736e3

Browse files
committed
more PR feedbacks
1 parent e4e3135 commit 90736e3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/pipeline/physics_pipeline.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -965,12 +965,12 @@ mod test {
965965
.local_anchor2(point![0.0, -3.0].into());
966966
#[cfg(feature = "dim3")]
967967
let joint = RevoluteJointBuilder::new(Vector::z_axis())
968-
.local_anchor1(point![0.0, 1.0, 0.0].into())
969-
.local_anchor2(point![0.0, -3.0, 0.0].into());
968+
.local_anchor1(point![0.0, 1.0, 0.0])
969+
.local_anchor2(point![0.0, -3.0, 0.0]);
970970
impulse_joints.insert(h, h_dynamic, joint, true);
971971

972972
let mut parameters = IntegrationParameters::default();
973-
parameters.dt = 0f32.into();
973+
parameters.dt = 0.0;
974974
// Step once
975975
let gravity = Vector::y() * -9.81;
976976
pipeline.step(
@@ -988,8 +988,8 @@ mod test {
988988
&(),
989989
&(),
990990
);
991-
let translation = bodies.get(h_dynamic).unwrap().translation();
992-
let rotation = bodies.get(h_dynamic).unwrap().rotation();
991+
let translation = bodies[h_dynamic].translation();
992+
let rotation = bodies[h_dynamic].rotation();
993993
assert!(translation.x.is_finite());
994994
assert!(translation.y.is_finite());
995995
#[cfg(feature = "dim2")]

0 commit comments

Comments
 (0)