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.
Creates a camera at position looking at target that the keyboard and pointer fly around, and adds it to the scene without activating it.
position
target
The position and the target
The free camera
const camera = bitbybit.babylon.camera.free.create({ position: [20, 20, 20], target: [0, 0, 0] });bitbybit.babylon.scene.activateCamera({ camera }); Copy
const camera = bitbybit.babylon.camera.free.create({ position: [20, 20, 20], target: [0, 0, 0] });bitbybit.babylon.scene.activateCamera({ camera });
Namespace: Bit
Other top-level symbols:
API reference home · Full symbol index · Tutorials and guides · Platform
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.