Hi I Hope you are having a good day.
I need to know if there’s a way to update the values in the init constructor on the fly.
GameObjects = scene.objects Driver = GameObjects[Driver] cube = GameObjects[cube] class a: def __init__(self,cube): self.b = Driver.position - cube.position
Now what happens is the self.b attribute only records the starting position
of the cube and does not continue to recalculate the self.b value as the cubes position changes.
How do I go about making sure the value of self.b updates as the position of the cube updates?
Thanks. Any Help and Solutions will be greatly appreciated.