Sorry for all the posts but I found another bit of workaround to get the values to actually work. So you spawn the actor, get the component, set the values and right after that, set it’s world location to another value.
So, it seems by moving the wind actor after setting new values, now the cloth uses those new settings.
Hey. I am just a beginner doing my sailboat. My sail moves with the wind, but I would like to change wind direction within the game, something like [key N] on the keyboard → wind go north… I see you posted a blueprint, but I cant understand it. Could you help me ?
You can just set the wind actor rotation directly. It should update the new values. I think the only thing that give some problems, which is what the blueprint I posted shows, is to update strength on it.
But if you update the rotation values, it’ll do it, so you can hook up some keys to set some values, or if you press a direction it rotates in that direction.
If you get the wind actor, then get the component from that, you can set world rotation directly. on it, and you can do it however you like through key presses, or whatever.
I’d probably set up a new blueprint based on actor, add the wind source… etc. Set the behavior up in there. Then I think for keyboard input you’ll have to reference the player controller, not 100% sure right now if you’ll get it otherwise, I can’t remember now off hand. But then place that in your level and you should be able to control it.
That’s a bit vague maybe but I have to do it and see the exact setup, but it should be fairly simple actually, in theory. I think if you get stuck, maybe post on the forum, or maybe PM me on there, I’ll try help more direct.
Hey, I found this video which helped me out a lot. It’s another work around, but it’s more recent and more customizable for wind intensity and direction. Hopefully this helps.