Unreal Engine 5.8 Gameplay Math & Technical Design Lab
Five interactive demonstrations of targeting, movement and projectile math, backed by a reusable C++ runtime plugin.
SpatialMathLab demonstrates how 3D mathematics translates into practical gameplay-design and technical-design problems through an interactive Unreal Engine laboratory.
The project translates linear algebra and computational geometry into practical gameplay and engine-facing systems:
- vector decomposition and reflection;
- signed angles and field-of-view classification;
- closest-point calculations;
- ray-plane, ray-sphere and ray-AABB intersections;
- barycentric coordinates;
- local/world transform conversion;
- shortest-arc quaternion rotation and normalized SLERP;
- target scoring;
- analytical low/high ballistic trajectories.
The project connects mathematical systems to common gameplay problems such as lock-on targeting, field-of-view checks, surface alignment, aim assistance and projectile trajectories. It is included in my portfolio as supporting technical evidence rather than as my primary game-design project.
| Area | Evidence |
|---|---|
| Engine | Unreal Engine 5.8 |
| Language | C++ |
| Architecture | Reusable SpatialMathCore Runtime plugin |
| Integration | Blueprint-callable public API |
| Visual validation | Five interactive debug stations |
| Automated validation | 25/25 tests passed |
| Edge cases | Degenerate vectors, misses, parallel rays and unreachable targets |
| Build | Clean Editor build with BuildSettingsVersion.V7 |
| Release | v1.0.0 |
Decomposes an animated input vector into projection and rejection components relative to a basis vector.
Practical uses include slope movement, steering, surface alignment and directional filtering.
Visualizes shortest-arc rotation and normalized spherical interpolation between two directions.
Practical uses include camera rotation, lock-on transitions, aiming and orientation blending.
Visualizes a ray-sphere hit, contact point, hit distance, surface normal and a ray-AABB demonstration.
Practical uses include aiming, interaction traces, visibility checks and spatial queries.
Classifies moving targets using range, field-of-view cone checks, dot-product alignment and distance weighting.
Practical uses include lock-on systems, aim assistance and contextual targeting.
Solves and visualizes analytical low-arc and high-arc projectile trajectories under gravity.
Practical uses include projectile weapons, AI ranged combat, trajectory previews and artillery systems.
The reusable Runtime plugin owns the mathematical implementation and validation.
USpatialMathBlueprintLibrary exposes stateless C++ functions to C++ and Blueprints.
Main result structures:
FSpatialRayHit;FSpatialBarycentricResult;FSpatialBallisticSolution.
- deterministic stateless calculations;
- explicit validity results;
- safe handling of invalid and degenerate inputs;
- floating-point tolerance instead of exact equality;
- separation between reusable mathematics and presentation;
- tests focused on both successful and failure cases.
All 25 SpatialMathCore tests passed again after the final layout and camera changes.
Test coverage includes:
- projection, rejection and reflection;
- positive and negative signed angles;
- zero-length vectors;
- closest points and endpoint clamping;
- point-to-segment distance;
- target inclusion and exclusion;
- ray hits, misses and parallel cases;
- barycentric inside/outside classification;
- transform round trips;
- shortest-arc quaternion mapping;
- SLERP endpoints;
- reachable and unreachable ballistic solutions.
Reproduce the test run with:
powershell -ExecutionPolicy Bypass -File ".\Tools\Run-SpatialMathCoreTests.ps1"Detailed results: docs/TESTING.md
SpatialMathLab/
|-- Plugins/
| `-- SpatialMathCore/
| `-- Source/
| `-- SpatialMathCore/
| |-- Public/
| `-- Private/
| `-- Tests/
|-- Source/
| `-- SpatialMathLab/
|-- Content/
|-- Config/
|-- Tools/
|-- docs/
`-- media/
The plugin contains reusable mathematics. The host project contains the laboratory, animation, camera controls and portfolio presentation.
Further documentation:
| Key | Action |
|---|---|
0 |
Overview |
1 |
Vector Projection |
2 |
Quaternion SLERP |
3 |
Ray Intersections |
4 |
Target Selection |
5 |
Ballistic Solutions |
WASD |
Free movement |
Q / E |
Move down / up |
Shift |
Faster movement |
Hold RMB |
Free look |
Requirements:
- Unreal Engine 5.8;
- Visual Studio with Game development with C++;
- Windows 64-bit.
Open SpatialMathLab.uproject. Unreal may rebuild the project modules automatically.
SpatialMathLab supports my game-design portfolio by showing that I can reason about gameplay-facing technical systems such as targeting, FOV, orientation, spatial queries and projectile trajectories, and communicate them through interactive visual demonstrations. The primary value here is technical fluency that helps collaboration with programmers and rapid prototyping in Unreal Engine.
Developed a reusable Unreal Engine 5.8 C++ plugin for vector decomposition, signed angles, transform-space conversion, quaternion interpolation, ray intersections, target selection and analytical ballistic trajectories. Added an interactive five-station laboratory, Blueprint APIs and 25 automation tests covering numerical and degenerate edge cases.
Latest release:
Milena Strahova






