Renamed Cube to Hexahedron
Added dot products, standardized normalization and length
Added distance to edge
Added friction