That demo is for the commercial Box2D+ plugin:
colludium.itch.io/box2d-plus
You can't do this with the official Physics behavior.
There is another physics addon you can try which has lots of features and is free:
construct.net/en/forum/extending-construct-2/addons-29/behavior-chipmunk-physics-82151