I am making a football (soccer) game and when i shoot the ball, it takes a very long time to stop, is there a way to decrease the velocity of the ball?
- if you’re simulating physics (are you?) - Linear Damping:
That’d be easiest.
-
another method is to use physical materials. Useful if you want to simulate surface friction. Play on grass, play on ice, then play on sand. Play with different balls. It can be combined with the first suggestion.
-
there are also volumes whose properties can affect a simulating body that travels through them. Perhaps it’s a windy day, or gravity is acting up → sci-fi football.
-
there are also springs (even a quat one) that could allow you achieve some uncanny physical behaviours - somewhat advanced setup but could work where regular physical behaviour is not enough and you need controllers
-
you could use a projectile movement component - it takes over physics sims and provides its own bounciness and friction
-
and, lastly, there’s this experimental feature - Physics Control:
This plugin allows for very fine control over physically simulating bodies. Think of it as of inverse physics - you dictate the end result and the simulation becomes accurate and predictable.
- you can also do everything manually, as suggested below
If you’re not using physics like the user above me has suggested and you’re managing the ball’s movement manually, you can multiply its current velocity by a damping factor, it represents be mass, air resistence or whatever you can think of as a damping factor in a physics body
it worked, thank you
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.