Skip to content

Commit

Permalink
more PR feedbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
Vrixyz committed Jun 21, 2024
1 parent e4e3135 commit 90736e3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/pipeline/physics_pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -965,12 +965,12 @@ mod test {
.local_anchor2(point![0.0, -3.0].into());
#[cfg(feature = "dim3")]
let joint = RevoluteJointBuilder::new(Vector::z_axis())
.local_anchor1(point![0.0, 1.0, 0.0].into())
.local_anchor2(point![0.0, -3.0, 0.0].into());
.local_anchor1(point![0.0, 1.0, 0.0])
.local_anchor2(point![0.0, -3.0, 0.0]);
impulse_joints.insert(h, h_dynamic, joint, true);

let mut parameters = IntegrationParameters::default();
parameters.dt = 0f32.into();
parameters.dt = 0.0;
// Step once
let gravity = Vector::y() * -9.81;
pipeline.step(
Expand All @@ -988,8 +988,8 @@ mod test {
&(),
&(),
);
let translation = bodies.get(h_dynamic).unwrap().translation();
let rotation = bodies.get(h_dynamic).unwrap().rotation();
let translation = bodies[h_dynamic].translation();
let rotation = bodies[h_dynamic].rotation();
assert!(translation.x.is_finite());
assert!(translation.y.is_finite());
#[cfg(feature = "dim2")]
Expand Down

0 comments on commit 90736e3

Please sign in to comment.