Skip to content

Conversation

@Sigmarik
Copy link

Gravity fix

Bug

There is a bug with the way gravity is applied to objects.

In the gravity function of the physics.lua script if one object is continuously touching the ground, it can prevent other objects from receiving velocity updates.

The bug is probably present in other branches of the project, presumably from Lesson05.

Fix

Restructured the branch so it does not stop query processing.

Minor Changes

Not sure if this was intentional or not, but indentation was inconsistent, changing between tabs and spaces mid-block.
I know the repo was never supposed to be an exemplary piece of code, and I am not critiquing it in any way.
It's just that VSCode was forcing consistent indentation style on me, and I was too lazy to disable the feature.

…toughing the ground

style: made indentation mode consistent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant