i want to make it so when something is true then the directional lighting will have a different angle. i tried something like this:
drlight = DirectionalLight(parent=pivot, y=3, z= -6, shadows=True, rotation=(0, 45,
drlight2 = DirectionalLight(parent=pivot,y=100, z=120, shadows=True, rotation=(45, -45, 45))
drlight.enabled = True
drlight2.enabled = False
and then change it in some if:
def input(self, key):
if self.hovered:
if key == 'left mouse down':
if animloaded:
drlight.enabled = True
drlight.enabled = False
unfortunately it didnt work. if anyone knows what to do pls help