I have mad a physics engine that is mostly designed so that it’s easy to make custom collision shapes! Here’s the link to my demo:
https://arcade.makecode.com/S16491-94510-70935-59666
If you want to use this as a base to a game, you can, just make sure to credit me on the physics engine.