Engineering Journal

Dev Logs

Documenting the process of building indie games and simulation tools. Currently focused on a 2D Physics Engine in Unity.

Unity 6 C# .NET HLSL
LOG_004 // PHYSICS 2 DAYS AGO

Collision Resolution: Impulse Method

Switched from penalty-based collision to impulse-based. Calculating relative velocity and restitution to apply immediate force vectors.

float j = -(1 + e) * velAlongNormal;
j /= invMassA + invMassB;
Vector2 impulse = j * normal;
PHYSICS MATH
LOG_003 // AI 1 WEEK AGO

A* Pathfinding Optimization

Implemented a binary heap for the open set to reduce lookup time from O(n) to O(1). Agent navigation is now stable at 500+ units.

ALGORITHMS C#
LOG_002 // RENDERING 2 WEEKS AGO

Custom 2D Lighting Shader

Wrote a custom HLSL shader for dynamic 2D shadows using raymarching on a signed distance field (SDF).

SHADERS HLSL