drcmda
January 10, 2022, 12:14am
1
we have begun to host p2-es on poimandres: GitHub - pmndrs/p2-es: JavaScript 2D physics library since the original hasn’t seen a commit merged in years. i hope this is going to spark the same interest in fixing and caring about it as it did for cannon GitHub - pmndrs/cannon-es: 💣 A lightweight 3D physics engine written in JavaScript.
the idea is to give it a modern build system, flat bundle, fix tree shaking, typescript, looking over the pr’s that were never merged and then continuing with ongoing bugfixes.
if you want to help, join the project! we really need more maintainers, it’s a pity these libraries have been catching dust for so long.
7 Likes
Update: Some of the above has been done now!
p2-es has been converted to typescript and builds tree-shakable esm and cjs bundles.
I’m also starting to look over some of the PRs on the original repo.
# `p2-es` Changelog
## v1.0.1
- Update version export
## v1.0.0
- Use typescript, include generated type definitions (@isaac-mason)
- Export as esm and cjs flatbundle (@isaac-mason)
- Fix bug setting frictionIterations in GSSolver, and where bodies with constraint could be removed from world. (@JSideris) (https://github.com/schteppe/p2.js/pull/360)
- Add `upperLimit` and `lowerLimit` to DistanceConstraint options (@DominicRoyStang) (https://github.com/schteppe/p2.js/pull/341)
- Fix World.step reverting to fixed time step with `timeSinceLastCalled` equal to `0` (@Grimeh) (https://github.com/schteppe/p2.js/pull/337)
- Fix EventEmitter bug causing listeners to receive incorrect events (@Fxlr8) (https://github.com/schteppe/p2.js/pull/336)
- Fix typo in AABB docs (@yzpeninsula) (https://github.com/schteppe/p2.js/pull/331)
- Fix incorrect fraction in `Line.raycast` (@palra) (https://github.com/schteppe/p2.js/pull/342)
## v0.7.3
- Update type definitions (@joergjaeckel)
This file has been truncated. show original
Come on over and help make p2-es better!
1 Like