Limit velocity?

I’m working with the blueprint based ball demo and I’m trying to find a way to limit the max velocity of the ball. I have added a force depending on the input axis so that the player can get some control of the ball in the air. While on the ground the velocity is limited by the max angular velocity of the physicsball blueprint. Is there another setting that I’m missing somewhere, or do I have to set the velocity myself in blueprint?

We don’t have a setting to limit linear velocity, this is something you will have to do yourself.

I think I got it:

I split the vector so that I could isolate the x,y velocity from gravity.

Brilliant solution, worked like a charm! Thanks mate! :slight_smile:

Made it a little shorter:

3 Likes

Raise the dead

Even shorter :slight_smile:

Thank you all for these solutions, it’s quite elegant and works great.

added the Z to it myself as I needed it for my helicopter.
​​​​​​​

Very cool - If anyone uses this on Tick - replace “Vector Length” with “Vector Length Squared” AND compare with Max Velocity Squared (set elsewhere) for a performance boost. Saves taking a square root, which is reputedly expensive.

QuickOptimization

Raising the dead for better performance. : )

3 Likes