The creation of a procedurally generated asteroid shape and a function that would check for object collision.
Check project source code!