Skip to content

Commit

Permalink
fixed top down view
Browse files Browse the repository at this point in the history
  • Loading branch information
pgrwe committed Apr 5, 2024
1 parent 61d20f0 commit 6bb7375
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/pages/arm.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ class ArmPainterTop extends CustomPainter {
final elbowX = shoulderToElbow * cos(swivelAngle+pi/2);
final elbowY = shoulderToElbow * sin(swivelAngle+pi/2);

final shoulderJoint = Offset(toAbsolute(shoulderX) + size.width/2, -toAbsolute(shoulderY)+size.height);
final elbowJoint = Offset(toAbsolute(elbowX) + size.width/2, -toAbsolute(elbowY)+size.height);
final shoulderJoint = Offset(toAbsolute(shoulderX) + size.width/2, -toAbsolute(shoulderY)+size.height/2);
final elbowJoint = Offset(toAbsolute(elbowX) + size.width/2, -toAbsolute(elbowY)+size.height/2);

final points = [
shoulderJoint,
Expand Down

0 comments on commit 6bb7375

Please sign in to comment.