I am using the panda 3d game engine and I have created a Block
class.
I need to be able to destroy items in the game but I did not specify a name.
class block code:
class Block:
def __init__(self, window, cords: tuple):
box = window.loader.loadModel('models/box')
box.set_pos(cords[0], cords[1], cords[2])
box.reparent_to(window.render)
and this is the function I use to create a Block
:
def place(window, cords: tuple):
Block(window, cords)
I also used a nested for loop to create many blocks