Log inGet started
Package

ForestProp.component

This package holds more than this page lists. See all of its files in its world.

README.md

ForestProp

Puts one forestProps prop on its entity: entity.spawn("oak").component.add("ForestProp", { kind = "oak", age = "veteran", season = "autumn" }). Fields kind, age, season, look, variant, seed, collide and detail (auto swaps to the cheaper far versions as the prop shrinks on screen; near, mid or far pins one); changing any field rebuilds. It reads Props.parts for LOD 0/1/2 and spawns one local, unsaved child per part (a Model plus a MeshLod that swaps to the cheaper bakes by screen size; a part without a far stand-in swaps to an empty mesh) and a static collider child from the catalog entry (CapsuleCollider / BoxCollider / SphereCollider, sized per age for trees, attribute forestSurface set when the entry names a surface). Needs no sibling components; deterministic from its synced fields, so every peer builds the same prop.