zhuyinheng / IPC-2D-Game

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incremental Potential Contact (IPC) based 2D GAME

Project Information

Incremental Potential Contact (hereinafter referred to as IPC), is the paper of SIGGRAPH 2020 and its simulation effect is very accurate and stable, which is worthy of in-depth understanding and research. However, the IPC source code is based on C + + and has many dependencies and puts emphasis on performance optimization. This results in a complex procedure for building up the environment and makes it difficult for beginners to learn. Therefore, this project uses Taichi programming language to realize the 2D IPC algorithm. And by using the TowerBlock style game, the accuracy of the algorithm is realized and verified.

Features

  • Implicit time step for calculating object trajectory and the system prevents intersection and reversal
  • System Incremental Potential consists of: elastic potential energy, kinetic energy, gravitational potential energy and barrier potential energy
  • Realize Barrier-augmented IP, use CCD to accelerate and avoid intersection
  • System dynamically manages the included objects

Result

References

About


Languages

Language:Python 100.0%