Bitbybit Docs
    Preparing search index...

    Class BabylonFreeCamera

    The flying camera: it sits at a position, looks at a target and moves freely with the keyboard and pointer, for walking through a scene rather than looking at one object.

    Index

    Constructors

    create

    Constructors

    create

    • Creates a camera at position looking at target that the keyboard and pointer fly around, and adds it to the scene without activating it.

      Parameters

      Returns FreeCamera

      The free camera

      const camera = bitbybit.babylon.camera.free.create({ position: [20, 20, 20], target: [0, 0, 0] });
      bitbybit.babylon.scene.activateCamera({ camera });