Skip to content

Commit 74421f6

Browse files
committed
cargo fmt
1 parent dd5b1bf commit 74421f6

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

examples2d/all_examples2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ mod debug_intersection2;
2020
mod debug_total_overlap2;
2121
mod debug_vertical_column2;
2222
mod drum2;
23-
mod pin_slot_joint2;
2423
mod heightfield2;
2524
mod inverse_kinematics2;
2625
mod joint_motor_position2;
2726
mod joints2;
2827
mod locked_rotations2;
2928
mod one_way_platforms2;
29+
mod pin_slot_joint2;
3030
mod platform2;
3131
mod polyline2;
3232
mod pyramid2;

examples2d/pin_slot_joint2.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,14 @@ pub fn init_world(testbed: &mut Testbed) {
6262
/*
6363
* Pin slot joint between cube and ground.
6464
*/
65-
let axis: nalgebra::Unit<nalgebra::Matrix<f32, nalgebra::Const<2>, nalgebra::Const<1>, nalgebra::ArrayStorage<f32, 2, 1>>> = UnitVector::new_normalize(vector![1.0, 1.0]);
65+
let axis: nalgebra::Unit<
66+
nalgebra::Matrix<
67+
f32,
68+
nalgebra::Const<2>,
69+
nalgebra::Const<1>,
70+
nalgebra::ArrayStorage<f32, 2, 1>,
71+
>,
72+
> = UnitVector::new_normalize(vector![1.0, 1.0]);
6673
let pin_slot_joint = PinSlotJointBuilder::new(axis)
6774
.local_anchor1(point![2.0, 2.0])
6875
.local_anchor2(point![0.0, 0.4])

src/dynamics/joint/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
pub use self::fixed_joint::*;
22
pub use self::generic_joint::*;
3-
pub use self::pin_slot_joint::*;
43
pub use self::impulse_joint::*;
54
pub use self::motor_model::MotorModel;
65
pub use self::multibody_joint::*;
6+
pub use self::pin_slot_joint::*;
77
pub use self::prismatic_joint::*;
88
pub use self::revolute_joint::*;
99
pub use self::rope_joint::*;
@@ -14,10 +14,10 @@ pub use self::spherical_joint::*;
1414

1515
mod fixed_joint;
1616
mod generic_joint;
17-
mod pin_slot_joint;
1817
mod impulse_joint;
1918
mod motor_model;
2019
mod multibody_joint;
20+
mod pin_slot_joint;
2121
mod prismatic_joint;
2222
mod revolute_joint;
2323
mod rope_joint;

0 commit comments

Comments
 (0)