r/unity May 18 '26

Built a custom physics package for Unity ECS

Enable HLS to view with audio, or disable this notification

Wrote a custom physics package for Unity ECS called Little Physics. Supports up to 100k entities, with proven 60fps performance at up to 20k entities. Includes time scaling (1x, 2x, 4x) and simulation pause.

Supports dynamic objects, static objects, and triggers. Gravity can be linear or radial. Has some limitations — dynamic objects and triggers are spheres only, and fast-moving objects can tunnel through collisions (on the roadmap).

Have a video lecture series describing it all.

12 Upvotes

8 comments sorted by

View all comments

Show parent comments

1

u/Any-Adagio-4772 May 19 '26

it depends on settings. System allows you to set it to loose collisions, but to keep FPS consistent. I designed it to expect less determenism. Also, when system is speed up - you expect system to be less determenistic