Skip to content

Commit 762e041

Browse files
committed
Add joint motors for revolute and prismatic joints
crate::math::PI;
1 parent 94fc632 commit 762e041

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/dynamics/joints/tests.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,8 @@ fn create_app() -> App {
2121
MeshPlugin,
2222
));
2323

24-
// Use 20 substeps.
2524
app.insert_resource(SubstepCount(20));
2625

27-
// Disable gravity for joint tests.
2826
app.insert_resource(Gravity(Vector::ZERO));
2927

3028
app.insert_resource(Time::<Fixed>::from_duration(Duration::from_secs_f32(
@@ -87,7 +85,6 @@ fn revolute_motor_spins_body() {
8785
app.update();
8886
}
8987

90-
// Get the angular velocity of the dynamic body.
9188
let body_ref = app.world().entity(dynamic);
9289
let angular_velocity = body_ref.get::<AngularVelocity>().unwrap();
9390

@@ -383,7 +380,7 @@ fn prismatic_motor_position_target() {
383380
/// when it reaches the angle limit.
384381
#[test]
385382
fn revolute_motor_respects_angle_limits() {
386-
use core::f32::consts::PI;
383+
use crate::math::PI;
387384

388385
let mut app = create_app();
389386
app.finish();

0 commit comments

Comments
 (0)