GDevelop-extensions icon indicating copy to clipboard operation
GDevelop-extensions copied to clipboard

Rotate 3d сamera object with touch or mouse pointer extrnsion

Open github-actions[bot] opened this issue 10 months ago • 3 comments

Description

This extension allows you to rotate the 3D camera object using touch or the mouse cursor, you can make nice controls for mobile 3D projects or complement your existing one for variety.

  • This is suitable for first and third person.
  • This will work on all devices.

How to use the extension

Add a new action, select the object from which the camera is looking, select the action "Rotate 3d сamera object with touch or mouse" specify the 2D layer on which the mouse or touch will move, for example "UI", specify the part of the screen on which the mouse or touch will move, for example "Right half", specify the camera rotation smoothing level, for example 4, finished.

Checklist

  • [X] I've followed all of the best practices.
  • [X] I confirm that this extension can be integrated to this GitHub repository, distributed and MIT licensed.
  • [X] I am aware that the extension may be updated by anyone, and do not need my explicit consent to do so.

What tier of review do you aim for your extension?

Community (Unreviewed)

Example file

Rotate3dCameraObjectWithPointerOrTouchEexample.zip

Extension file

RotateCameraObject3DExtension.zip

github-actions[bot] avatar Apr 24 '24 21:04 github-actions[bot]

Nice extension. If you could add one condition where the extension won't work if it is on a specific objects. I really need that coz I have both joystick and this extension!

Byson94 avatar Jun 04 '24 15:06 Byson94

Nice extension. If you could add one condition where the extension won't work if it is on a specific objects. I really need that coz I have both joystick and this extension!

If I understood you correctly, you can do this: image

Jurfix avatar Jun 04 '24 15:06 Jurfix

Oh now i understood, but I have a problem. So i added to clamp at -90 and 90 because the camera can do 360°, but with this extension it just goes above the that angle.

Byson94 avatar Jun 09 '24 07:06 Byson94