This is my first topic so i hope i’ll do it right.
Following a udemy course I’ve created an actor c++ class called MovingPlatform which moves forward an backwards using velocity and distance members.
Then after compiling the class and creating a blueprint class based on that actor, I’ve added a cube mesh.
The mesh is moving as expected but I cannot set the direction of the movement to follow the mesh’s forward vector seen by the gizmo.
If im using the relative view i can only see the cube rotating, and if I’m changing to the world relative view, I can see it’s vector’s direction changing too, but the actor’s vector stays the same, and the cube is moving in the actors direction.
when i start the simulation the mesh always moves relative to the local vector, and what i want to do is to set the rotation inside the editor so that the mesh move to the world direction
You images are inverted: the local mode image is actually world aligned. You can tell because the actors gizmo is aligned with the viewports that is on the bottom left and the globe icon is active:
So your actor is moving in world direction. What I understand you want is for the actor to move in the direction of its forward vector. You can do that like so: