ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
View.zoom(entity) for entities outside the context?
-
I wanted to make the camera zoom to an entity within a group or component.
I can't just pass that entity to the zoom method as it is unaware of the transformation of the parent - it assumes the entity is in the current context.
So is there a workaround for this? -
Using
view.zoom(entity)
- then transforming the camera'seye
,target
andup
worked.
Advertisement