Testing for collision between two solids is more difficult. A fast way to do it is to just check if any of the vertices of either solid exists inside the other solid. This works most of the time, but you can get some overlap from edges, i.e. two swords might pass through each other if they are swung together. This can be addressed by creating redundant points.