3D camera rotation using touchscreen swipe on mobile

Hi, I am making a 3D parkour game and I would like to be able to have mobile 3D camera rotation using a finger swipe gesture but I have no idea how to do it. I know this question has been asked before but no one has given a working answer so far. It would be really helpful to now how to do it.
Thanks!

3 Likes

I have same question…been looking for the answer since 2023 :smiling_face_with_tear:

These guys managed to do it with gdevelop in this game. Cubic world
Play Cubic world

Would anybody who has bought the cubic world template look at the mobile controls to see how they did this?
This is what I made and it doesn’t work.

Play Project Parkour

1 Like

Its kinda annoying, they should make tutorial on how to do this.
Because a lot of players use mobile

I agree. Does no one have a solution?

1 Like

Yes it works now! They added pointer lock for mobile devices :partying_face: :partying_face: :partying_face:

where is the pointer lock extension for mobile?

They added a new 3d template just open it and it works

Yes! it works in my game now in some browsers!
Play Project Parkour

They’re using an extension called RotateCameraObject3D

The camera rotation is accomplished with a single action: Rotate 3d camera object ____ with touch or mouse on layer ____ and part of screen “left/right/whole” with smoothing ____

I could not find the extension anywhere but was able to copy it to other projects and it works perfectly.