I’m trying to add force and torque to my pawn giving it a 6DOF movement. The problem is that it allways applies the force and tourque in the direction of the world axis not the local axis. What I want is for the pawn to move along it’s LOCAL x axis if I press W, no mater how it is orientatied in the world.
I looked at every similar post on this forum and this is the closest I got:
But it still doesn’t work. What am I doing wrong?
1 Like
You’re transforming it to world
What happens when you scrap that node?
If I remove that node it oviously does not work as intendet.
What I’m trying is to creat a force vector in local space and convert it to world space because Add Force only accepts vectors in world space.
Initially it works but after a few rotations it stops workign. Like when I want to move forward I move forward but also sidewards. Almost like it would remember the last input I gave sidewards.
So I’ve seperated the different axis out and now it miraculasly works. Now Idea why that was the solution.
All I know is, my cube move forward on its local X vector with that code.
I’m pretty sure Add Force just adds force in the direction you give it.