Make a 3D destruction game inspired by Red Faction: Guerrilla and its Geo-Mod 2.0 destruction system. The player controls a walking and flying mecha in a fully destructible industrial district. The goal is to achieve or exceed the depth, physical believability, visual spectacle, responsiveness, and emergent behavior of Red Faction: Guerrilla's destruction system. Player and mecha: - Third-person controller with mouse-look, WASD movement, jumping, hovering, and flight. - Give the player a visible mecha with a recognizable mechanical body, articulated legs, arms, and weapons. - Walking, turning, jumping, flying, hovering, and landing must feel responsive, smooth, and satisfying. - The mecha's legs and feet must respond naturally to uneven terrain, stairs, rubble, slopes, and partially collapsed structures. - The mecha must physically interact with its surroundings rather than simply moving through the environment while playing animations. - The mecha must have meaningful mass, inertia, friction, and collision behavior. - Walking into objects must push or displace them when physically appropriate. - Walking across a weakened floor, bridge, or roof must apply the mecha's actual weight to the structure. - Landing heavily or colliding with structures at high speed must apply appropriate forces and potentially cause structural damage. - The mecha must react to explosions, falling debris, and other heavy physical impacts. - Flight must have convincing acceleration, inertia, and deceleration. - The player must be able to freely fly around buildings, enter sufficiently large openings, hover near structures, and land on rooftops and elevated platforms. - Transitioning between walking and flying must be smooth and continuous. - The third-person camera must remain smooth and usable indoors, outdoors, during flight, and during large structural collapses, without clipping through solid geometry. - The mecha must remain controllable and enjoyable to play even when surrounded by rubble and collapsing structures. Weapons and physical interactions: - Equip the mecha with a rocket launcher that fires visible projectiles with actual trajectories and collision detection. - Rockets must explode on impact, applying localized damage and physical forces to the environment. - Explosions must affect nearby objects and structures according to their distance, exposure, material properties, and physical state. - Explosions must not simply delete every object within a radius. - Include a powerful close-range demolition attack capable of physically damaging walls, beams, columns, and other structural elements. - Allow the player to precisely damage individual structural components rather than being limited to destroying entire sections of buildings. - Different types of impacts must produce meaningfully different damage patterns and physical responses. - Allow the mecha to grab, carry, push, pull, and throw suitable physical objects and debris. - Objects being held must continue interacting physically with the environment. - Thrown objects must be capable of damaging structures based on their actual physical impacts. - Weapon impacts, collisions, falling debris, and the mecha's own physical interactions must all use the same underlying destruction rules. - Destroying the same building using different tools, impact locations, and sequences of damage must produce different physically meaningful outcomes. - Additional weapons and tools are encouraged if they introduce interesting physical interactions. Structural destruction: - Implement a general-purpose structural destruction system comparable to or exceeding the depth and behavior of Red Faction: Guerrilla. - Buildings must be actual load-bearing structures rather than collections of independently breakable meshes. - Structural integrity must depend on the actual geometry, arrangement, connections, material properties, weight, and damage of the structure. - Beams, columns, floors, walls, roofs, braces, foundations, and structural connections must contribute to the building's physical stability as appropriate. - The weight of a structure must be transmitted through its supporting elements. - Damaging or removing a structural element must affect the loads carried by the remaining structure. - Loads must redistribute through surviving structural elements and connections as a structure becomes damaged. - A building must remain standing if its surviving structural elements can adequately support it. - Removing non-load-bearing walls must not cause an otherwise stable building to collapse. - Removing critical load-bearing supports must be capable of causing partial or complete structural failure. - Structures must be capable of failing under their own weight without requiring further weapon impacts. - Structural components must respond appropriately to compression, tension, shear, bending, torsion, and buckling. - Long beams must be capable of bending and failing under excessive loads. - Columns must be capable of buckling or crushing under excessive compression. - Connections between structural members must be capable of weakening and failing under excessive forces. - Structural damage must accumulate and reduce the ability of affected components to carry loads. - A previously damaged component must be capable of failing under a load that an undamaged component could withstand. - Structural loads must change as objects move, supports are damaged, debris accumulates, or additional weight is applied. - A partially damaged structure must be able to remain stable, deform gradually, or progressively collapse according to its actual physical condition. - Structures must respond correctly to temporary and sustained loads, including heavy objects resting on them and sudden impacts. - Buildings must not remain standing on physically insufficient supports merely because some connection to the ground still exists. - Buildings must not automatically collapse simply because a particular percentage of their components has been destroyed. - Structural behavior must work generally across different building geometries, construction methods, materials, damage patterns, and loading conditions. - The player must be able to damage structures in arbitrary ways and obtain physically consistent results without relying on predetermined destruction sequences. Materials and fracture: - Include distinct construction materials such as concrete, reinforced concrete, steel, wood, and glass. - Materials must have meaningfully different density, stiffness, strength, toughness, and failure behavior. - Concrete must support cracking, chipping, crushing, and brittle fragmentation. - Reinforced concrete must behave differently from unreinforced concrete, with reinforcement influencing its structural behavior and failure. - Steel must be capable of bending, twisting, buckling, and tearing or breaking under sufficient stress. - Wood must be capable of splitting, bending, and breaking. - Glass must shatter appropriately when damaged. - Large structural elements must support localized damage and progressive fracture. - The player must be able to create holes in walls, floors, roofs, and other sufficiently damaged geometry. - Damage must occur at the actual impact location rather than only at predefined weak points or predetermined breakable sections. - Repeated impacts must be capable of enlarging existing holes, extending fractures, and further weakening damaged material. - A large wall or column must not necessarily disappear in its entirety when a small portion is damaged. - Fractures must produce pieces of varying sizes and shapes appropriate to the material, damage location, and impact strength. - Structural elements must be capable of deforming before breaking where appropriate to their material. - Permanent deformation must affect the actual physical shape and structural behavior of the damaged component. - Fractured geometry must expose convincing interior surfaces, broken cross-sections, and reinforcement where appropriate. - Fracture surfaces must have appropriate thickness, geometry, materials, lighting, and collision. - Newly created holes must be genuine physical openings that the player, projectiles, and debris can pass through. - Visible damage and collision geometry must remain consistent at all times. - Different materials and types of damage must produce visually and physically distinct results. - Fracture must remain functional on detached, moving, partially collapsed, and previously damaged structural components. - Broken pieces must be capable of undergoing further deformation and fracture when subjected to additional damage. - Do not fake localized fracture using visual cracks, decals, or particle effects while leaving the underlying geometry and collision unchanged. Progressive collapse: - Building collapse must occur as a continuous physical process rather than an instantaneous transition from intact to destroyed. - Structures must be capable of leaning, sagging, twisting, bending, cracking, breaking apart, and toppling according to their actual structural condition. - A building with weakened supports on one side must be capable of collapsing asymmetrically. - A partially unsupported floor must be capable of sagging, tilting, fracturing, or falling according to its remaining supports. - Floors must be capable of progressively collapsing into lower floors. - Falling sections must continue interacting with surviving structural elements. - Components that remain connected during a collapse must continue transmitting forces until their connections fail. - Large falling sections must have appropriate mass, inertia, momentum, angular velocity, and collision behavior. - Collapse direction, timing, and severity must emerge from the physical simulation. - A structure must be capable of surviving severe localized damage if sufficient structural support remains. - Comparatively small but strategically located damage must be capable of causing extensive structural failure. - Collapsing structures must be capable of becoming temporarily stable in new configurations. - A partially collapsed structure resting against another structure or a pile of debris must be capable of receiving support from that contact. - Removing that secondary support must be capable of causing further collapse. - Structural failures must continue after the initial impact when justified by gravity, redistributed loads, deformation, or subsequent collisions. - Structural elements must continue interacting and failing throughout the collapse rather than becoming ordinary indestructible rigid objects immediately after detaching. - The player must be able to interact with, damage, or move parts of a structure while it is actively collapsing. - The final arrangement of rubble must emerge from actual physical interactions. - Repeatedly destroying a building in different ways must produce different outcomes without relying on predetermined collapse sequences. Debris and secondary destruction: - Broken structural components must become physically interactive debris. - Debris must have appropriate mass, collision, inertia, momentum, friction, and restitution. - Large debris must be capable of falling, rotating, sliding, bouncing, settling, and interacting with other objects. - Falling debris must be capable of damaging surviving structures through actual physical impacts. - A falling roof must be capable of breaking through the floor beneath it and causing further collapse. - Large beams, columns, and sections of buildings must be capable of damaging neighboring structures when they strike them. - A collapsing building must be capable of initiating a secondary collapse in another building. - Secondary destruction must use the same structural and material rules as direct player-caused destruction. - Debris must be capable of breaking into smaller pieces when subjected to further impacts. - Rubble must accumulate naturally and remain physically present after destruction. - Debris piles must affect movement, obstruct doorways and corridors, block roads, and create new traversal possibilities. - Debris must be capable of becoming lodged between structural elements and affecting their movement or stability. - The weight of accumulated debris must be capable of overloading surviving floors or other supporting structures. - The mecha must be able to walk over, push aside, or manipulate appropriate debris. - Major debris must not disappear when it settles or when the player looks away. - Small visual particles may be simplified, but debris large enough to influence gameplay or structural behavior must remain physically meaningful. - The environment must remain interactive after extensive destruction rather than becoming a static representation of a collapsed building. Interconnected structures: - Buildings must be capable of sharing supports, beams, foundations, elevated platforms, bridges, and other structural connections. - Connected structures must transmit forces and loads through their actual physical connections. - Destroying one structure must be capable of affecting another through shared supports or connected structural elements. - Bridges and elevated walkways must depend on their actual supporting structures and attachment points. - A bridge must be capable of remaining partially supported after some of its supports are destroyed. - Further damage or additional loading must be capable of causing the remaining bridge to deform or collapse. - A collapsing bridge must be capable of damaging the buildings it connects. - A collapsing tower must be capable of striking and damaging neighboring buildings. - Structures must be capable of supporting each other through actual physical contact even when they were not originally connected. - Destroying or moving one of these supporting structures must affect the stability of the other. - Structural dependencies must remain consistent as connected buildings fracture, deform, and move. - Cascading destruction must be capable of spreading across several connected or neighboring buildings. - Interactions between structures must work generally rather than being limited to predetermined combinations or scripted destruction events. Map and environment: - Create a substantial, densely built 3D district rather than a single building or isolated destruction arena. - Include a variety of large and small buildings with different architectural designs, materials, construction methods, and structural layouts. - Include multi-story buildings, industrial facilities, warehouses, towers, bridges, elevated walkways, platforms, and other interconnected infrastructure. - The map must contain enough closely positioned and physically connected structures to allow large-scale cascading destruction. - Include structures with different heights, weights, support arrangements, and structural characteristics so destruction does not feel repetitive. - Buildings must have meaningful architecture, recognizable structural elements, and varied layouts rather than being simple rectangular shells. - Include roads, open spaces, industrial equipment, smaller props, elevation changes, and environmental details. - The district must feel like a coherent, believable place rather than a collection of unrelated physics test objects. - The map must be large enough for meaningful exploration on foot and in flight. - The player must be able to approach structures from different directions, enter them, climb or fly onto their roofs, and observe destruction from various viewpoints. - All major structures and relevant environmental objects must be destructible. - The entire district must use the same destruction rules. - Do not restrict advanced destruction to a few special buildings while using simpler destruction elsewhere. - The environment must remain playable after extensive destruction, with traversal naturally affected by the resulting physical state. - You have creative freedom over the exact map size, building count, architectural style, layout, atmosphere, and environmental storytelling. - Prioritize a substantial, interesting, interconnected environment over arbitrary building counts or repetitive structures. Building interiors: - Buildings must have actual accessible interiors rather than empty shells or inaccessible decorative geometry. - Include multiple floors, rooms, corridors, staircases, internal walls, columns, beams, doors, windows, machinery, and appropriate furnishings. - Interiors must be meaningfully designed and sufficiently detailed to explore and destroy from within. - Internal geometry must have meaningful thickness, collision, and material properties. - Interior structural elements must contribute to the building's actual stability. - The player must be able to enter buildings normally or create new entrances through destruction. - Destroying internal supports must be capable of affecting the floors and roofs above them. - Damaging ceilings from below must be capable of weakening or collapsing the floor above. - Destroying stairs, floors, and walkways must create actual changes to available traversal routes. - Interior objects must react to explosions, impacts, falling debris, and structural collapse. - Explosions and falling structural components inside buildings must interact with the actual surrounding geometry. - The player must be able to move through newly exposed interiors and partially collapsed buildings. - Interior and exterior destruction must remain physically and visually consistent. - Buildings must remain physically coherent when their exterior walls are removed and their internal structures are exposed. - Destruction must not reveal missing geometry, invisible barriers, or incorrectly hollow structural elements. Environmental interactions: - The mecha's weight must be capable of overloading weakened floors, roofs, bridges, and platforms. - Adding or removing heavy objects must affect the loading and stability of structures. - Objects resting on damaged structures must fall naturally when their supporting geometry collapses. - Moving debris that is supporting another object or structure must affect its stability. - Include environmental objects capable of causing secondary explosions or other physical consequences when damaged. - Secondary explosions must cause genuine physical damage and potentially further structural failure. - Machinery, doors, lights, and other environmental systems must respond appropriately to damage where relevant. - Physical objects must remain interactive when trapped underneath or between structural components. - Allow interactions between buildings, debris, machinery, weapons, and the mecha to produce emergent outcomes. - Unexpected but physically valid interactions must work without requiring specifically scripted responses. Visual destruction effects: - Implement convincing smoke, dust, sparks, explosions, debris particles, impact flashes, and other destruction effects. - Destruction must communicate material weight, impact strength, structural scale, and physical force. - Different materials must produce visually distinct impact and fracture effects. - Concrete impacts and collapses must generate convincing dust and fragments. - Metal impacts and structural failures must produce appropriate sparks, fragments, and visible deformation. - Glass and wood must produce recognizable material-specific destruction effects. - Rockets must have visible flight trails, impact effects, explosions, and lingering smoke where appropriate. - Large collapses must produce substantial dust clouds corresponding to the actual locations, intensity, and progression of structural failure. - Falling debris must generate additional effects when striking other objects or the ground. - Progressive collapses must produce successive bursts of dust, debris, and other effects rather than a single generic explosion. - Dust and smoke must expand, disperse, move, and fade convincingly over time. - Dust clouds must persist long enough to communicate the scale and aftermath of a major collapse. - Smoke and dust must have convincing spatial depth, transparency, lighting, and occlusion. - Effects must behave convincingly inside buildings, in enclosed spaces, outdoors, and around partially collapsed structures. - Visual effects must remain consistent when viewed from different angles, distances, and elevations, including when the player flies through them. - Dust and smoke must not appear as obviously flat sprites without convincing spatial depth. - Explosions and large impacts should produce satisfying visual and camera feedback appropriate to their intensity without excessively interrupting player control. - Large debris must receive appropriate lighting and cast shadows. - Newly exposed structural surfaces must have consistent shading and material appearance. - Effects must enhance genuine destruction rather than conceal missing or incorrect physical behavior. - Visual effects must remain convincing and performant when several structures collapse simultaneously. Sound: - Include convincing sounds for impacts, explosions, structural creaking, cracking, metal deformation, falling debris, mecha movement, weapons, and flight. - Sound intensity and character must respond appropriately to the material, scale, distance, and nature of the event. - A small concrete impact must sound different from a major structural collapse or a heavy steel beam striking another structure. - Structural creaking and breaking sounds must correspond to actual structural loading, deformation, or failure where appropriate. - Large collapses must produce layered, evolving audio corresponding to their progression rather than one generic sound effect. - Sound must communicate direction, distance, and the scale of destruction. - Avoid excessive repetition, clipping, or overwhelming audio when many objects collide simultaneously. Visual quality: - Create a visually polished and cohesive 3D environment with convincing lighting, shadows, materials, atmosphere, and architectural detail. - Buildings must look like actual constructed structures rather than primitive boxes covered in generic textures. - Different construction materials must be visually recognizable. - Structural components and damaged areas must be visually understandable. - The mecha must have an appealing mechanical design and convincing movement without requiring elaborate handcrafted character animation. - The environment must communicate scale and depth, especially during flight and large collapses. - Destruction should be satisfying to observe both from a distance and at close range. - The intact environment, partially damaged buildings, ongoing collapses, and final rubble must all look convincing. - Lighting and shadows must respond correctly to changes in geometry as buildings are damaged and collapse. - Newly exposed interiors must receive appropriate lighting. - Maintain visual clarity during heavy destruction and particle effects. - Prioritize satisfying presentation and gameplay alongside technical correctness. - The game should look and feel like a polished destruction sandbox rather than a bare physics visualization. Gameplay: - Deliver a complete, enjoyable game rather than just a technical destruction demonstration. - Include meaningful objectives, challenges, or progression that make use of the destruction mechanics. - Gameplay should encourage experimentation, strategic destruction, environmental traversal, and creative physical interactions. - Destruction must have meaningful consequences beyond visual spectacle. - Include situations where selective demolition is more useful than indiscriminately destroying everything. - Include situations where interconnected structures and secondary destruction are important. - Objectives must respond to actual physical outcomes rather than predefined destruction sequences. - Allow multiple approaches and creative solutions wherever the mechanics naturally permit them. - The player must be able to freely explore the district and experiment with destruction outside of any structured objectives. - Gameplay must remain interesting after the player has learned the basic controls and destroyed several buildings. - Provide reliable restart and environment reset functionality. - Preserve creative freedom over objectives, mission design, progression, additional mechanics, and the overall game structure. Simulation stability: - The destruction simulation must remain stable during large-scale structural failure and extensive physical interaction. - Avoid tunneling, severe jitter, unstable deformation, physics explosions, duplicated impulses, and unexplained increases in energy. - Fast projectiles and falling debris must not pass through intact geometry. - Structures under stable loading must not spontaneously vibrate, deform excessively, or collapse without a physically justified reason. - Components must not detach, teleport, or disappear without a valid physical or damage-related cause. - Structural components must remain coherent when several connections fail simultaneously. - The simulation must handle large differences in mass, size, and velocity between interacting objects. - Previously damaged and partially collapsed structures must remain stable and interactive. - Multiple simultaneous collapses must not corrupt the physics world. - Rapid repeated impacts must produce consistent damage without breaking the simulation. - Debris and surviving structural elements must be capable of settling into stable resting configurations. - Resting debris must remain capable of responding to new forces, impacts, damage, and changes in its supporting geometry. - Physical outcomes must not depend on camera position, viewing direction, graphical settings, or whether a structure is visible. - Resetting the environment must restore its geometry, structural properties, connections, physics, and gameplay state correctly. Performance: - The game must remain smooth, responsive, and playable during large-scale destruction. - Target stable 60 FPS gameplay at 1080p on a reasonably capable desktop computer. - Large building collapses must not cause noticeable stutter, freezes, or severe frame-time spikes. - Firing rockets, creating fractures, breaking structural connections, and generating debris must not interrupt player movement or camera controls. - The player must be able to rapidly fire weapons and repeatedly damage structures without causing noticeable stutter. - Performance must remain stable when several buildings collapse simultaneously and trigger cascading secondary destruction. - The game must support substantial numbers of structural elements, physical fragments, debris objects, and visual effects. - Previously destroyed parts of the map must not cause performance to deteriorate progressively until the game becomes unplayable. - Off-screen destruction must remain physically consistent when it can influence the rest of the environment. - Do not sacrifice gameplay-relevant collision, structural integrity, secondary destruction, or physical interactions to conceal performance problems. - Do not replace expensive physical collapses with scripted animations or decorative rubble. - Do not conceal performance problems by prematurely deleting substantial debris or making damaged structures indestructible. - Visual quality settings may affect presentation but must not fundamentally alter the destruction simulation. - Repeated destruction and environment resets must not cause resource leaks or progressively worse performance. - Include diagnostics showing FPS, frame times, and relevant simulation performance. - Evaluate performance during actual large-scale destruction rather than only while the environment is intact. - Maintain responsive controls and smooth camera movement throughout the simulation. Verification: - A structurally sound building must remain standing under its own weight. - Removing non-load-bearing walls must not collapse an otherwise adequately supported structure. - Removing load-bearing supports must change the loads carried by the remaining structure. - A partially damaged building must be capable of remaining stable until further damage or additional loading causes failure. - A long unsupported or cantilevered structural section must deform or fail when subjected to excessive loading. - A structure must be capable of surviving on several remaining supports but failing when those same supports are individually weakened, even if none are completely destroyed. - A building with weakened supports on one side must be capable of collapsing asymmetrically. - A heavy falling structural section must be capable of breaking through multiple floors. - A collapsing tower must be capable of striking a neighboring building and initiating secondary structural failure. - A bridge connecting two buildings must be capable of partially collapsing while retaining meaningful structural connections to its surviving supports. - A weakened bridge or roof must be capable of collapsing under the mecha's weight or landing impact. - A damaged building leaning against another structure must be capable of receiving physical support from it and collapsing further when that support is removed. - A pile of debris must be capable of temporarily supporting a damaged structural component, with further collapse possible when the debris is moved. - The player must be able to create a hole through a wall, enter the resulting opening, destroy internal supports, and observe physically consistent structural changes. - The player must be able to progressively damage and eventually sever a large structural member by attacking different portions of it. - Large debris must remain physically interactive and capable of further destruction after the original building has collapsed. - A previously detached structural component must be capable of fracturing again when struck by a sufficiently heavy falling object. - Different materials must behave meaningfully differently under comparable impacts and sustained loads. - Repeatedly destroying the same building using different impact locations and sequences must produce different physically justified outcomes. - Several interconnected buildings must be capable of undergoing cascading structural failure simultaneously without significant stutter or simulation instability. - Include an optional debug mode that allows inspection of actual structural loading, damage, connections, collision geometry, and failure conditions. - Debug information must reflect the actual simulation state rather than decorative values. - Verify the destruction system across different building layouts, support arrangements, material properties, impact locations, and loading conditions. - These behaviors must emerge from generalized simulation and work across different valid configurations, not just the exact scenarios described here. Controls and feedback: - WASD to move. - Mouse to control the camera and aiming. - Provide intuitive controls for jumping, flying, hovering, and descending. - Provide intuitive controls for weapons and other physical interaction tools. - Provide controls for grabbing, carrying, releasing, and throwing suitable objects. - Show a crosshair or aiming indicator. - Provide clear feedback for weapon impacts and interactions. - Provide a way to restart the game and reset the environment. - Include accessible in-game controls and instructions. - Keep the interface readable and unobtrusive. Technical requirements: - Deliver a complete, runnable game playable in a modern desktop browser. - You have complete freedom over the programming languages, rendering libraries, physics libraries, frameworks, and implementation techniques used. - You may use existing libraries, implement custom engines and solvers, or combine different approaches. - Do not require proprietary assets, a backend, paid services, or manual code completion. - All structures, debris, weapons, and the mecha must interact within the same coherent physical world. - Rendering, collision geometry, structural state, fracture, and deformation must remain synchronized. - Structural simulation and destruction must work generally across the entire map. - Do not fake structural destruction using prerecorded animations, predetermined collapse sequences, whole-building health bars, disappearing geometry, or decorative rubble. - Do not fake structural integrity by merely checking whether a building has any remaining connection to the ground. - Do not fake material deformation with visual effects that have no corresponding physical consequences. - Do not fake secondary destruction with manually scripted chains of building collapses. - Do not fake physical interactions using invisible triggers that activate predetermined destruction events. - Do not use invisible intact collision geometry behind destroyed surfaces. - Do not make objects indestructible simply because their destruction would be computationally expensive. - Do not restrict the player to predetermined destruction locations or sequences. - Approximate physical simulation is acceptable where necessary for real-time gameplay, provided that the required structural behavior, material differences, physical interactions, and emergent outcomes are genuinely achieved. - You are free to choose how to achieve every requirement, but do not omit difficult behaviors or replace them with superficial approximations. - Prioritize physically convincing structural integrity, realistic material failure, progressive collapse, secondary destruction, interconnected buildings, persistent debris, responsive mecha controls, smooth performance, satisfying visual and audio effects, and enjoyable gameplay. - All major systems must be genuinely implemented, work consistently across the full map, and remain functional under unusual but physically valid player interactions. - The result must be a complete, polished destruction game with a general-purpose destruction system, not a collection of carefully staged destruction demonstrations.