Impliment buildTree function

This commit is contained in:
CJSatnarine
2023-12-29 23:55:15 -05:00
parent bfde354760
commit 08429b56ce

View File

@@ -66,9 +66,9 @@ def buildTree():
treeYPos = random.randint(0, yNum - 1) treeYPos = random.randint(0, yNum - 1)
treeZPos = z + 0.5 treeZPos = z + 0.5
# Add a single block as the location of the tree stump.
bpy.ops.mesh.primitive_cube_add(size = size, location = (treeXPos, treeYPos, treeZPos), scale = (size, size, size)) bpy.ops.mesh.primitive_cube_add(size = size, location = (treeXPos, treeYPos, treeZPos), scale = (size, size, size))
# Calling the functions: # Calling the functions:
cleanScene() cleanScene()
spawnGround() spawnGround()