π’ PlaceMaker | 25% off for February including new Google Earth data imports!
Learn more
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