fix: ball gravity (#275)

pull/278/head
Allison Ryan 2 years ago committed by GitHub
parent 07ea110ec3
commit e5e770d086
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -115,7 +115,7 @@ class Ball<T extends Forge2DGame> extends BodyComponent<T>
math.pow(defaultGravity, 2) - math.pow(positionalXForce, 2),
);
body.gravityOverride = Vector2(positionalXForce, positionalYForce);
body.gravityOverride = Vector2(-positionalXForce, positionalYForce);
}
}

Loading…
Cancel
Save