LinearVelocity flings the player when hitting to a wall

I want to make a dash-like system but when the player dashes/rolls into a wall or anything solid, it just flings them very high up


I don’t know why this is happening, so any help would be appreciated, thanks

1 Like

You could set the velocity to 0,0,0 if the player hits anything. That way, the player won’t be flung up as there won’t be any forces other than gravity acting on them

1 Like

I’ll try this, thanks! :grinning:

charlimitcharlimit

Try Decreasing the force the LinearVelocity applies to achieve the target velocity, so when you hit a wall, the linear velocity will stop trying to make you go faster, which will stop the flinging.

I’ll be sure to try this too, thanks for the help! :smiley:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.