Hello everyone! I’m looking for some help rotating a spotlight in azimuthal and polar directions in UE5 using a given angular speed or step. However, I’m new to coding in UE5 and don’t know where to start. If anyone could offer me some guidance on how to achieve this, I would greatly appreciate it. Thank you in advance for your help!
Can you be a bit more specific? Is the light pointing inwards towards the center, or outwards from the center?
Perhaps you can make a diagram?
Hi, you’re right I should’ve mentioned that I don’t want to rotate the spotlight itself on the surface of the sphere. The spotlight is positioned at the center and pointing outwards. So, I want to use the kind rotation that is presented in the details menu like it scans the spherical room. However I want it to be automatically rotate.
I’m on the phone right now so I can’t draw much but here is how I want spotlight to be positioned if the image makes any sense
Ok, better
Just rotating in a flat circle is no problem, but if you want it to scan the whole surface of the sphere, that’s going to need work.
What scan method are you thinking of?
I learned how to use Blueprint in basic level today. I managed to rotate objects and construct a delayed for loop to get the task done. Since I was at work I couldn’t get back to the forum, but it seems like there’s no problem now. Thank you for your replies.