Custom 2D Physics Engine


Name

Custom 2D Physics Engine


Engine
Unity
Language
C#
Platform
Windows

Time Frame
8 weeks
Team Size
5
Only programmer

Info
A school team project to make a puzzle game that used physics.

Personal Contributions
My assignment was to make a custom 2D physics engine in Unity:
  • 2D collision and resolution,
  • Motion (position, acceleration, velocity, gravity and drag), Point masses and Rigidbodies.


Links
GitHub snippets of the main files.

A gameplay example of how the physics engine would be used

A test on various restitution values, as shown in the 2nd video

A snippet of the engine where the forces are being applied