How to create "hanging" physics?

How would you make something like a skateboard have that realistic physics when it hangs off an edge?

Example from game “skated”: