Forest API

editor.rotateForestSelection(forestData, deltaEulerRotation, centerPoint, originalTransforms)
  • forestData - the ForestData C++ class where the forest items are hold
  • deltaEulerRotation - eurler rotation to be added
  • centerPoint - center point around where rotation will happen
  • originalTransforms - the previous transforms of the forest items

Rotate forest items selection.

editor.addForestItem(forestData, item)
  • forestData - the ForestData C++ class where to add the item
  • item - the C++ ForestItem to be added

Add a new forest item to the forest data.

editor.removeForestItem(forestData, item)

Remove a forest item

Last modified: 7 December 2021, at 14:30

Any further questions?

Join our discord