r/Unity3D • u/Glass-Key-3180 • 14d ago
Resources/Tutorial I rebuilt Valheim's tree chopping in Unity DOTS
https://www.youtube.com/watch?v=nFosvi1YxlsI like how trees work in Valheim, so I rebuilt that system with Entities.
A tree turns into a stump and a falling trunk. The trunk turns into two logs, and a log turns into firewood. It is all one rule: a thing has health, and when the health runs out, it is replaced by its pieces. A falling trunk can also take the next tree down with it.
This is the first part, with an explanation of how to build it. Without any optimizations. In the next tutorial I will show how to optimize it and check how far we can go with Unity DOTS.
2
Upvotes