From 0d28a29cc42f0529f8027380f8316ed0ecd930c3 Mon Sep 17 00:00:00 2001 From: Matt Date: Tue, 28 Jan 2020 17:30:42 -0800 Subject: [PATCH] Flip rotation in minimap --- chameleon-client/src/components/3D/MiniMap.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chameleon-client/src/components/3D/MiniMap.vue b/chameleon-client/src/components/3D/MiniMap.vue index 5de4b9b2e..1182911cb 100644 --- a/chameleon-client/src/components/3D/MiniMap.vue +++ b/chameleon-client/src/components/3D/MiniMap.vue @@ -76,7 +76,7 @@ // move the rotation point to the center of the rect this.ctx.translate(y + this.targetWidth / 2, x + this.targetHeight / 2); // wpi lib makes x forward and back and y left to right // rotate the rect - this.ctx.rotate(target.rotation.radians); + this.ctx.rotate(target.rotation.radians * -1); // draw the rect on the transformed context // Note: after transforming [0,0] is visually [x,y]