Forgot local applyForce code

I remember getting it right once, but I forgot again, how to do applyForce locally… Godot spoiled me here, automated all of it for me. As usual, my code results in moving to one end of the map, regardless of the direction my little box is facing. How do I fix this again?

What do you mean by applying force locally? Do you mean applying force in the direction that the box is facing?

Yes, precisely. I don’t know why this is a thing with PlayCanvas, Godot takes less work.


(Example in API docs, 3rd one down)