How do you get wind direction in Anim Blueprint?

I’ve realized I probably shouldn’t be using an anim blueprint for dynamically transforming the bones, as the skeletal mesh has no need for animation sequences. The only animation is dynamic in response to the wind direction, which is better achieved using a PosableMeshComponent.

I’m still fooling around with the best way to implement a wind that implements all aspects of the game consistently and without having to reproduce state. My current set up consists of a WindApplyingComponent and WindImpactedInterface defined in C++. The WindApplyingComponent has a tick function that checks to see if the owning actor implements WindImpactInterface, and if so calls a function in the interface that passes along the vector returned from World->Scene->GetWindParameters(…). This allows me to define the wind by placing a WindDirectionalSource actor in the map that adds it’s influence to the scene’s wind parameters.

I have a wind vane actor (in Blueprint) that includes aPosableMeshComponent and WindApplyingComponent and implements WindImpactedInterface. The BlueprintImplementableEvent function declared by the interface is implemented in the actor’s EventGraph to calculate the rotation needed to point the arrow into the wind and apply it to the appropriate bone in the mesh.

The above is working reasonably well for now, but I’m still hoping someone has a better idea, as this seems a bit hacky with the interface and all. This is likely a better suited for the forums now…