entity.combine() not working #307
Unanswered
JacktheFabricRipper
asked this question in
Q&A
Replies: 1 comment 5 replies
-
Looks like there's a rogue |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Whenever I use combine(), the entities do not take on the properties of the parent. They all get no collider, no texture, black color, no shader, even if I change it. I have some code below, is there anything I am doing wrong?
from ursina import *
from ursina.shaders import basic_lighting_shader
from random import *
from perlin_noise import PerlinNoise
app = Ursina()
terrain = Entity(model=None, collider=None)
noise = PerlinNoise(octaves=2, seed=seed())
for x in range(20):
for z in range(20):
y = round(noise([x/10,z/10])*5)
block = Entity(model='cube')
block.x = x
block.y = y
block.z = z
block.parent = terrain
terrain.combine()
terrain.texture = 'white_cube'
terrain.color = color.white
terrain.shader = basic_lighting_shader
EditorCamera()
app.run()
Beta Was this translation helpful? Give feedback.
All reactions