Things like bump functions [0] would generally do the trick.
[0] https://en.wikipedia.org/wiki/Bump_function