For anyone that does not want to pay the high price of a professional Unity 3D license Torque3D from Garage Games has been released as open source.
I have downloaded this and can confirm it is more than just an editor like the UDK or Source SDK. It is the complete source code and documentation for the engine.
Torque 3D | Products | GarageGames.com
Enjoy.