Content-Length: 237460 | pFad | http://github.com/godotengine/godot-docs/pull/10953

E2 Fix 3D movement example code not resetting vertical velocity by Saalvage · Pull Request #10953 · godotengine/godot-docs · GitHub
Skip to content

Fix 3D movement example code not resetting vertical velocity #10953

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Saalvage
Copy link

The current code never resets the vertical velocity, leading to it accumulating over time and every subsequent fall starting at the previously set velocity.

It would likely be preferable to simply mutate the vertical component based on the body's experienced velocity _targetVelocity.Y = Velocity.Y - ..., however, this co-dependence between _targetVelocity and Velocity might make the functionality harder to understand and may therefore be less beneficial for didactic reasons.

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








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/godotengine/godot-docs/pull/10953

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy