from ursina import *
from ursina.prefabs.first_person_controller import FirstPersonController
class Box(Button):
def __init__(block='grass.obj',texture='grasstex.png',pose:tuple=(0,0,0)):
super().__init__(model=block,texture=texture, collider='mesh',position=pose)
app=Ursina()
tp=50
for x in range(tp):
for z in range(tp):
Box(pose=(x,0,z))
player=FirstPersonController()
player.z=player.x=0
Sky()
app.run()
它给了我这个错误:
断言失败:在 panda/src/pgraph/nodePath.cxx 的第 407 行重新设置父级 断言失败:检测到在场景图中创建循环的尝试:ui_render/ui_camera/ui/box:c:\buildslave\ 第 2637 行的 PandaNode 框sdk-windows-amd64\build\panda\src\pgraph\pandaNode.cxx
我应该怎么办?