I’m currently trying to translate an actor, but I was wondering how I can control the translation so as to avoid the actor outside the render view? In another way to describe my question, I would like to get the translation limits in order to keep the actor still visible within the view.
I have figured some ways, for example, convert the actor’s bounds in world coordinate to the view coordinate, then check whether they are outside. Or convert the view coordinate back to the world coordinate. However, those methods seemed a bit of complicated… Could anybody give any suggestion please? Thank you so much!