GDevelop-extensions
GDevelop-extensions copied to clipboard
Rotate 3d сamera object with touch or mouse pointer extrnsion
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
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!
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:
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.