Hello. I am trying to create a forest with trees using multimesh set_as_bulk_array. I am setting it up like so:
var tree_data = []
for x in range(...):
for y in range(...):
if(condition):
var pos = Vector3(x, 0.0, y)
var basis = Basis(Vector3.UP, deg2rad(rand_range(0, 359)))
tree_data.append(Transform(basis, pos))
var array = PoolRealArray(tree_data)
multimesh.set_as_bulk_array(array)
However, I am getting the error Condition "!multimesh->data.ptr()" is true. I have searched online for examples and the docs a rather cryptic.
Thanks!