aboutsummaryrefslogtreecommitdiff
path: root/examples2d
diff options
context:
space:
mode:
authorpellico <pellico@users.noreply.github.com>2023-07-27 18:12:35 +0200
committerSébastien Crozet <sebcrozet@dimforge.com>2023-12-10 12:43:13 +0100
commit7c43e96943dd00bd57546213d918d44703d37b72 (patch)
treeb215b26fa844da5890190aee1f6d60f2dc6ec1cb /examples2d
parenta05622cfe995cb681f01bc22956addf99c208cc6 (diff)
downloadrapier-7c43e96943dd00bd57546213d918d44703d37b72.tar.gz
rapier-7c43e96943dd00bd57546213d918d44703d37b72.tar.bz2
rapier-7c43e96943dd00bd57546213d918d44703d37b72.zip
Removed not required parentheses
Diffstat (limited to 'examples2d')
-rw-r--r--examples2d/joint_motor_position2.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples2d/joint_motor_position2.rs b/examples2d/joint_motor_position2.rs
index c44ea13..56866ac 100644
--- a/examples2d/joint_motor_position2.rs
+++ b/examples2d/joint_motor_position2.rs
@@ -38,7 +38,7 @@ pub fn init_world(testbed: &mut Testbed) {
.local_anchor1(point![x_pos, 1.5])
.local_anchor2(point![0.0, -0.5])
.motor_position(
- (std::f32::consts::PI - std::f32::consts::PI / 4.0 * num as f32),
+ std::f32::consts::PI - std::f32::consts::PI / 4.0 * num as f32,
1000.0,
150.0,
);