AddForce in XZ reduces gravity ?

Trying to recreate this character controller and modify it a bit for my needs


Running into issue where AddForce XZ reduces gravity while active ?
(tried with/without AddForce Y and just changing velocity directly , rigidbody.velocity)

Seems strange , or am I missing something ?

Can you explain what you mean by “reduces gravity”? Do you mean that the character falls more slowly than usually when you’re apply later force via AddForce? Or are you talking about some other kind of behavior?

If you’re using standard rigidbody gravity (rather than applying gravity yourself), and you’re only calling AddForce with X or Z force components, that should have no effect on the vertical velocity of the object. Once you start manually modifying the “.velocity” of the rigidbody, though, there are lots of ways you could mess that up and conflict with normal gravity.

I had AddForce working in Y and AddForce working in XZ (no “.velocity” modifications)
Issue was with Mass and Scale I had , had to balance it and AddForce in Y for character to fall properly during XZ movement )

1 Like