fixed project and distance, added side
minor change to planes creation
added inFrustum