refactor: changed angle calculations

pull/15/head
alestiago 4 years ago
parent 3295dc7d6b
commit 3887167035

@ -211,12 +211,12 @@ class FlipperAnchorRevoluteJointDef extends RevoluteJointDef {
); );
enableLimit = true; enableLimit = true;
final angle = flipper.side.isLeft ? _sweepingAngle : -_sweepingAngle; final angle = (flipper.side.isLeft ? _sweepingAngle : -_sweepingAngle) / 2;
lowerAngle = upperAngle = angle; lowerAngle = upperAngle = angle;
} }
/// The total angle of the arc motion. /// The total angle of the arc motion.
static const _sweepingAngle = math.pi / 7; static const _sweepingAngle = math.pi / 3.5;
/// Unlocks the [Flipper] from its resting position. /// Unlocks the [Flipper] from its resting position.
/// ///

Loading…
Cancel
Save