I have a global vector that needs to be updated in my Python script for the game engine.
I have tried using the init procedure but I get a error that vector used without being initialized.
if ‘init’ not in own:
own[‘init’] = 1
vect = Vector((1.0,0.0.0.))
vect = vect*transform <— get error here
I got around this problem by declaring 2 game properties one for the X value and one for the Y value since am operating in a 2-D system. But there’s gotta be a better way to do this.