feat: inverted angle logic

Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
pull/188/head
Alejandro Santiago 3 years ago committed by GitHub
parent 39b6c65377
commit 7e7b056112
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -91,7 +91,7 @@ class Baseboard extends BodyComponent with InitialPosition {
const angle = 37.1 * (math.pi / 180);
final bodyDef = BodyDef(
position: initialPosition,
angle: angle * _side.direction,
angle: -angle * _side.direction,
);
final body = world.createBody(bodyDef);

Loading…
Cancel
Save