How to change World direction for my object

Hello,

I can change the World direction in the blueprint of my pawn, but not on my object, why ?

I would like to wire Static Mesh Component with target, but it don’t work.:

World direction posted by anonymous | blueprintUE | PasteBin For Unreal Engine (it’s the object blueprint)

Need more info please :slight_smile:

That target only works with pawns. you are looking for the AddWorldOffset Node witch allows for static mesh movement.

You cant add movement input to something that does not have a movement component. such as a static mesh.

And how do you use this function ?

I am on it since 1 hour :smiley:

I made that: World direction posted by anonymous | blueprintUE | PasteBin For Unreal Engine

it needs an exec.

I don’t understand your question …

I did it but it’s not working.

are you attempting to move a random static mesh to the right or the player character? also is the static mesh set to moveable?

yes and yes.

The static mesh move, but I want move the mesh always at the right of the player character, and not at its right pointed by object world direction.

I will try to doing that in the pawn blueprint instead of the object blueprint, hope it will work.

so you want to have the mesh move along the side of the player similar to say a sidecar on a motorcycle or a dog given the heel command. thats actually pretty east to do just use the attach to actor node.

no it’s wrong, because it will spawn the object after the character whereas I would like to do that for environmental object.

So no parent/child way allowed.

i said nothing of spawning just attachment. you can take any moveable object in your scene and attach it to your player and it will be able to move with them. this can easily be done in the level blueprint or in any other blueprint as long as you can get a reference to the object you want to attach.

Yes, it’s parent/child method.
The attach to Actor or the attach to component make the actor as a child of the Object (not the inverse) and the result is the character is no more movable, I already tried this method: