How to create a 3D world for my metro station

Hello guys I have now my metro station and I can hide levels to see what inside I want to make it more attractive, I want to create a 3d world like Interface interactive
I want my station in the floor and the sky arround

and also how to modify mouse wheel sensitivity (it is so fast) also arrow keys they move camera fastly

this is my PG: https://playground.babylonjs.com/index.html#KI8BJH#35

1 Like

Hey, this is really good already

mouse wheel sensitivity: camera1.wheelPrecision = 200;

For environments: Fast Build a World - Babylon.js Documentation

1 Like

@Deltakosh can I zoom to where I click not to the target of camera ?
thank u dud :relaxed:

Not directly. You first need to set the target where your click then zoom

@Deltakosh and how can I get the clicked area ?

well that can be done with scene.pick (by retrieving pickResult.pickedPoint)

@Deltakosh I used :

scene.onPointerDown = function (evt, pickResult) {                  
   if (pickResult.hit) {
            clickedPosition.x = pickResult.pickedPoint.x;
            clickedPosition.y = pickResult.pickedPoint.y;
            clickedPosition.z = pickResult.pickedPoint.z;
            camera1.setTarget(clickedPosition);
                         }
                        };

but I want to avoid one click because I use one click and still pressed to rotate the camera, is there a function that use Double clicked, I searched in scene doc I didn’t find

you can use scene.onPointerObservable and check the evt type

See line #33: https://www.babylonjs-playground.com/#1GLEJK#5

Nice idea!!