This script can create 3D polygon from closed CONVEX path. If you want CONCAVE polygon then you must split path to the smaller convex ones.
It also contains Mouse look camera and implementation of SkyBox ( not SkyDome or SkySphere )
You must calculate collisions yourself but for this a list of vertices from function path_create_vertex_list() may help
End User Licence Agreement (EULA).