A simple Verlet (pronounced 'ver-ley') physics engine written in Haxe and Kha. Port of verlet-js with some references taken from verlet-js-unity
Particles, distance constraints, and angular constraints are all supported. From these primitives it is possible to construct just about anything you can imagine.
Add to your Kha project's Libraries folder via cloning, adding as a submodule, or downloading directly. I usually go with
git submodule add https://github.com/Devination/VerletKha.git Libraries/verlet/
Then when I need to update the submodule I'll use
git submodule foreach --recursive git checkout master && git submodule foreach --recursive git pull origin master
Documentation forthcoming. In the mean time, check out the Demos and their source code below.
All demos and preview gifs can be found here
- Shapes (VerletKha Hello world) - Source Code
- Primitive Colliders - Source Code
- Polygon Colliders - Source Code
- Force Volumes - Source Code
Check out the list on Trello
You may use VerletKha under the terms of the MIT License (See LICENSE).