How to make Add Impulse work on momentum??

I have a physics ball that I’m trying to make jump, add impulse works fine until the ball is falling down, the momentum of the fall change how much add impulse makes the ball jump.

Only when the ball is on the ground without any downwards momentum will it work correctly.

Val Change is ticked.

I mean, it already works correctly - as in, it’s physically correct. You can either override it with Set Linear Velocity (can be cumulative, too). Or add a larger impulse based on current velocity (projected if lateral movement is to be considered.

There’s also another consideration - what happens when when the ball is already going up and we jump.

Val Change is ticked.

Irrelevant here, it just make ignores mass.


I tried to base on current velocity but result is not much different.

And I can’t override it with Set Linear Velocity

Why?

Not sure, maybe I misunderstand something, would the override not shoot the ball up the same amount every time no matter what the downward momentum is?

Well, yes. I thought that’s what you wanted.


I have a physics ball that I’m trying to make jump, add impulse works fine until the ball is falling down, the momentum of the fall change how much add impulse makes the ball jump.

Only when the ball is on the ground without any downwards momentum will it work correctly.

It’s unclear what is not working correctly.

the momentum of the fall change how much add impulse makes the ball jump.

What’s wrong with that? That’s how physics works.

it is what I want, but it doesn’t do it.

it is what I want, but it doesn’t do it.

Could you please explain which behaviour is needed. What you’re saying is contradicting.

I use a “line trace by channel” to check if there is ground under the ball, so when the ball is falling down and it close to the ground but not close enough to touch it, but the check can still reach the ground, when I press jump at that moment the ball just bounce slightly, instead of jumping up as usual.