Forgive me for so many questions, I'm already ashamed to ask. Why does gravityArea.gravity_vec = Vector3 (0,0,1)
only work in the _ready function
? Neither in physics_process (delta)
nor in process (delta)
gravity change does not work.
func _ready():
gravityArea.gravity_vec = Vector3(0,0,1)
everything works
func _physics_process(delta):
if Input.is_action_just_pressed("num1"):
gravityArea.gravity_vec = Vector3(0,-1,0)
print(gravityArea.gravity_vec)
if Input.is_action_just_pressed("num2"):
gravityArea.gravity_vec = Vector3(0,0,1)
print(gravityArea.gravity_vec)
does not work, although it is written in the console output that the vectors are changing