Skip to content

collinjones/2D-Physics-Engine-SDL2

Repository files navigation

CSCI 4448 OOAD Summer 2022 Semester Project (Rudimentary 2D Physics Engine)

Authors: Collin Jones ([email protected]), Medhaj Shrestha ([email protected])

Java Version

Collin's java --version output:

java 18.0.1.1 2022-04-22
Java(TM) SE Runtime Environment (build 18.0.1.1+2-6)
Java HotSpot(TM) 64-Bit Server VM (build 18.0.1.1+2-6, mixed mode, sharing)

Medhaj's environment is Java 13.

Additional Comments

This engine is inspired by the first few chapters of a wonderful book called Nature of Code by Daniel Shiffman. https://natureofcode.com/
Our understanding of concepts such as vectors, forces, and the concept of physics in code can be traced back to this book.
However, beyond that, the more complex concepts such as Elastic Collisions, Vector Reflections, Normal Vectors and Dot Product, Momentum, etc, have been interpreted from many sources such as Wikipedia, MathOverflow, StackOverflow, then pieced together to fit our particular use in a larger system.

Collin and Medhaj have taken these concepts and represented them together at once in one large interactive simulation.

CURRENT CONTROLS

Click the left mouse button once, then again in another location to create a line.
Right click the mosue to create a circle.
Press the R key once to begin the creation of a box, Press R again to create it.

About

A 2D physics engine written in C++ with SDL2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published