BonfireCamera constructor
BonfireCamera({
- CameraConfig? config,
- World? world,
- List<
Component> ? hudComponents, - Viewport? viewport,
- Component? backdrop,
Implementation
BonfireCamera({
CameraConfig? config,
super.world,
super.hudComponents,
super.viewport,
super.backdrop,
}) : config = config ?? CameraConfig() {
if (this.config.initPosition != null) {
position = this.config.initPosition!;
}
viewfinder.zoom = this.config.zoom;
viewfinder.angle = this.config.angle;
if (this.config.target != null) {
follow(this.config.target!, snap: true);
}
}