Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Cancel
2
  • 2
    \$\begingroup\$ What you probably want to do isn't to "nullify all force in the 'gravity' direction", but nullify all force in the direction perpendicular to the surface you've hit so that, for example, if your character lands vertically on a sloped surface, it'll stop moving into the surface but still keep rolling / running down along the surface. \$\endgroup\$ Nov 29, 2021 at 14:57
  • \$\begingroup\$ I may end up doing something like that @IlmariKaronen - depending on how it feels, I may still want a bit of "impact" when hitting surfaces that aren't exactly orthogonal to gravity, like a hill that's on a mini planetoid. Either way it's a good note that should be considered. \$\endgroup\$
    – lase
    Nov 29, 2021 at 15:40