[SOLVED] Tree height

elvman

14-11-2007 18:11:26

Is there a way to dynamically update trees' height when, for example, the terrain is deformed?

JohnJ

14-11-2007 18:37:14

If you're using TreeLoader2D, all you have to do is use PagedGeometry::reloadGeometryPage() or PagedGeometry::reloadGeometry() to force PagedGeometry to reload the trees in the desired area. Since TreeLoader2D calculates heights from the terrain automatically, the tree heights will be automatically readjusted to the terrain.

If you're using TreeLoader3D, it will be a little more difficult; you'll basically need to delete and re-add the affected trees at the desired positions.

elvman

14-11-2007 19:45:51

Thanks, everything works now!