Haxe/AS3: Basic 3D Engine