Skip to content

Commit

Permalink
fix: try to improve torque and speed
Browse files Browse the repository at this point in the history
  • Loading branch information
fstof committed Dec 11, 2023
1 parent 5522ee2 commit 855e1d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/game/components/player/wheel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import '../platform/ice_block.dart';
import 'car.dart';

class Wheel extends BodyComponent<VeryGoodForgeGame> with ContactCallbacks {
static const _torque = 20.0;
static const _speed = 20.0;
static const _torque = 25.0;
static const _speed = 40.0;

final Vector2 initialPosition;
MouseJoint? mouseJoint;
Expand Down Expand Up @@ -93,7 +93,7 @@ class Wheel extends BodyComponent<VeryGoodForgeGame> with ContactCallbacks {
WheelJointDef()
..initialize(car.body, body, body.position, Vector2(0, 1))
..dampingRatio = 0.0
..frequencyHz = 20
..frequencyHz = 10
..enableMotor = false
..motorSpeed = 0.0
..maxMotorTorque = _torque,
Expand Down

0 comments on commit 855e1d4

Please sign in to comment.