Good day. I’m trying to implement the view as in the RTS. That is, so that the cursor can move the camera around the scene (by swiping to the side, the position and the target of the camera move). You can do this with the right mouse button with this camera, but it doesn’t quite work, so I’m trying to come up with
While the implementation looks like this, there are three confusing points:
- I don’t understand how to smoothly move the camera, at the moment it teleports to the desired point (although this is not scary)
- I can’t combine movement with rotation, my attempts can be seen in the commented out lines. For example: the focus point and position have moved, then with the mouse we rotate the scene along the axis and again try to move the focus point and camera position.
- How can the conditions BABYLON.PointerEventTypes.POINTERDOWN be separated
When using POINTERTAP - POINTERDOWN is applied anyway, two places with the log are also commented out in the attached site, in order to understand what I mean.