Flame camera.moveTo - render objects off the game canvas

Viewed 46

When moving the camera, the BodyComponents gets rendered off the game area, do you know why or is it a bug?

enter image description here

Flutter:

child: Scaffold(
  body: SafeArea(
    child: Column(
      children: [
        const Text("data"),
        Container(
          color: Colors.blue,
          alignment: Alignment.bottomCenter,
          child: SizedBox(
            width: 300,
            height: 600,
            child: Stack(
              children: [
                GameWidget<BallsSampleForge2DGame>(
                    game: BallsSampleForge2DGame(),

Flame:

camera.moveTo(<some vector>)
1 Answers
Related