
Package for creating Physics diagrams
Hello everyone!
I have released a new package called `typed-physics`, a drawing library for creating Physics diagrams in Typst.
The objective of this library is that, apart from drawing, it also understands physics. Therefore, the drawing of the diagrams, as well as the code used to create them, follows the physical relationships between the elements.
Here is an example of the package: the ramps, grounds, objects and forces interact together nicely instead of having to manually position them like another library would do.
Here is also an example for springs. Multiple objects, forces and surfaces can be composed nicely.
It currently supports: surfaces, blocks, pulleys, ropes, springs, applied forces, friction, and single-body mechanics on horizontal or inclined surfaces.
Every object and surface can be individually customized with colors, shapes, etc.
The package also offers a way to symbolically solve certain mechanics situations, although it does not support any arbitrary situation.
I’d love to hear your feedback, suggestions, or ideas for situations it should support next!
GitHub: https://github.com/GeronimoCastano/typed-physics
Typst Universe: https://typst.app/universe/package/typed-physics
Disclaimer: The package was developed with the help of Artificial Intelligence.