3D simulation of ballistic trajectory in a narrow alley

Published on June 03, 2026 | Translated from Spanish

Modeling the trajectory of a projectile in a confined space such as a narrow alley presents unique challenges for virtual simulation. Unlike an open field, side walls, uneven ground, and potential vertical obstacles drastically alter the motion vector. In this technical article, we will explore how to recreate this scenario in 3D engines, analyzing the physical parameters that determine bounces and kinetic energy loss after each impact.

3D simulation of a projectile bouncing between narrow walls in an urban alley with realistic physics effects

Technical implementation in 3D physics engines 🎯

To accurately simulate this phenomenon in Unity or Unreal Engine, we must configure a high-frequency collision detection system. The virtual alley should be modeled with simple polygonal geometry but with realistic restitution coefficients: 0.3 for brick and 0.1 for asphalt. The projectile requires a rigidbody with defined mass and initial vector velocity. The algorithm must calculate specular reflection at each bounce against the walls, considering the angle of incidence and surface friction. A custom script can record each impact point to generate a trajectory line visualized through particles or dynamic splines.

Forensic and tactical applications of the model 🔍

This simulation is not just a technical exercise; it has practical value in forensic reconstruction and tactical planning. By varying parameters such as projectile velocity or wall roughness, we can validate hypotheses about gunshots in dense urban environments. The 3D model allows visualizing how a single projectile can drastically change its trajectory after two or three bounces, explaining impact patterns that would otherwise seem random. For the Foro3D user, mastering these simulations opens the door to scientific visualization and virtual training projects.

To accurately model the bounce and deformation of the projectile against the walls of a narrow alley, it is best to use a contact solver based on collision detection via voxelization or real-time polygonal mesh.

(PS: Simulating trajectories is like playing billiards, but without having to clean the table afterwards.)