December 2024

ECS Physics Engine

OVERVIEW

Links

Overview

A custom made 3D rigid body physics engine built on top of a custom made archetype ECS engine, rendered using my DirectX 11 framework.

Timeline

2 months


FEATURES

Project Features

Many Collision Object Types

Collision can be done with points, triangles, spheres, AABBs and OBBs.

1.0 A big pile of objects. IMAGE

Fairly Stable Collision & Stacking

By utilising an iterative process in the collision resolution, the process becomes generally more stable.

1.1 Some stacked boxes. IMAGE

Debug Views

You can view the calculated contact points for every collision, or the spatial partitioning AABBs for every object.

1.2 Contact points debug view. IMAGE
1.3 Bounding box debug view. IMAGE

Terrain Collision

A static collision object can be generated from a height map that allows objects to roll around on terrain.

1.4 A pile of objects resting on a hill. IMAGE

DIAGRAMS

UML Class Diagram

Physics & ECS

Below is the UML class diagram representing both the physics framework and the ecs engine.

2.0 Server class diagram IMAGE