I’m working on a simulation of a solar collector which must rotate facing the sun position thorough the day, controlled by a UI slider.
The actor (BP_Collector) was made with some static meshes, 4 of them grouped by a scene component, which drives the rotation. This is the code for the component rotation:
Inside the widget BP, this is the code for the slider controlling the sun position and the BP_Collector component rotation:
The BP_Collector rotation works pretty well when I put it on the Level, but doesn’t work when it’s spawned. In this video you can see at the right the actor placed in the level (moving), and the other ones are spawned (still).
The BP_Collector grid was made placing individual actors inside another actor BP_Subsection, which is called by the spawner.
This is the code for the spawner:
What I’m doing wrong?
Maybe @ClockworkOcean could give me some advice? Thank you!