ArtemisChief / Heracles

a simple 2D Graphic Physics Engine based on OpenGL 3.3

Home Page:https://lab-ch76.top/2019/05/heracles/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Heracles

a simple 2D Graphic Physics Engine based on OpenGL 3.3

Simple Physics Engine for simulating motion of convex polygon with adjustable paraments, such as gravitational acceleration, elastic collision coefficient, mass, size and friction coefficient. Use it for simple 2D game making, for education, or just for fun, for instance, use Genetic Algorithm to make a snake learn how to move.

Logo

Introduction in Chinese: Click Here

Demos

You can press F1~F6 to load 6 different demos, for example:

A demo of pyramid (Demo1, with GUI), you can create another brick with large mass to strike it :)

Demo1

And a demo of simplified version of Angry Birds (Demo4, without GUI)

Demo4

Functions

  • Create customized rigid body with different type, size and mass
  • Drag or apply impulse on selected body
  • Set world paraments such as such as gravitational acceleration and elastic collision coefficient
  • Modify the attribute of selected body, such as mass and friction coefficient
  • Toggle GUI, which will toggle showing text and collision contact point
  • Set the world to pause or resume

Usage

  • You can see it at its top-right corner

Install

The Heracles project builds and tests only on Microsoft Windows 10

The runnable exe file is available: Download Here

For the source code, you can directly clone the latest master branch

References

About

a simple 2D Graphic Physics Engine based on OpenGL 3.3

https://lab-ch76.top/2019/05/heracles/


Languages

Language:C 91.1%Language:C++ 8.1%Language:Objective-C 0.8%Language:Verilog 0.1%Language:Forth 0.0%