Unity Position Based Dynamics in two dimensions
EdgeMesh
one dim structure for rods/ropes/trees/etc. simulation (including implementation of basic constraints and components).Points Locker
for locking the bodies. It can be used to lock points' positions during runtime (statically or dynamically).Point Point Connector
to connect entities that implement IPointsProvider
. The implementation includes basic generators and a few utilities.Stencil Bending Constraint
preserving rest angle.Position Constraint
(two variants: soft and hard one) preserving rest position.Point Point Connector Constraint
connecting the bodies.AABB
were added.RegeneratePositionConstraintsSystem
responsible for the regeneration of the constraints on transform change added.TriMesh
as well as its parent can be scaled, translated, and rotated, and mesh will be calculated properly.
139 changed files
+7,430 additions
-108 deletions
Full Changelog: https://github.com/andywiecko/PBD2D/compare/v0.1.0...v0.2.0
The first package release, which contains the following features: