I have some moving entities on the screen (could be anywhere between 2 and 6). I would like to be able to focus the camera on the average point of every subset of them (meaning, their 3 dimensional “mean” point on the globe). For convenience, I have full control over the entire data of each entity, meaning I know exactly where they are at each given time.
There are some ideas coming up to my mind, and I’d like some advices on how to encounter this problem.
How “expensive” can the creation of more entities be? . When it comes to only 2, I could theoretically create a third entity which is always in their middle point (using
PositionPropertyArray), and just hide it. If I scale it up from 2 to 4, I would have to create 11 more entities, just to hide them!
I think that using
CallbackPropertyis my way to go here. Problem is, I need the camera to be free when focusing. I can’t just calculate the appropriate frame each time, rather I need some solution to handle the camera’s position in each “tick” in a smooth way.
Thanks in advance!