Details
-
Suggestion
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
None
-
None
Description
Hi
I am developing a Game controller for Quick3D, similar to WASD but more advanced, with options to move and rotate a target node, while the camera is following the target, like a first person shooter.
The camera has a nice drift effect while the target is being moved / rotated.
The API is very easy to use, just set the View3D camera with the GameController built in camera, and set the GameController target property with the target Node to be controlled.
Check the following demo video of the GamController in action https://youtu.be/i3HdaLy1zRc
and a source code example here https://bitbucket.org/joaodeusmorgado/gamecontroller/src/main/
Find the attach GameController project files.
Target is controlled with keyboard and mouse, note it is still wip, the keyboard controlls are pretty much done, the mouse controlls still needs some development, and overall documentation.
Let me know if you guys think this could be a good utility to be added to QtQuick3D.Helpers and I will keep developing it and will come back with some questions.
Cheers
Joao de Deus
API example:
View3D { id: view anchors.fill: parent camera: control.camera Node { id: originNode NodeCustomGeometry { id: nodeTarget } }//originNode }//View3D GameController { id: control target: nodeTarget fpsCamera: true // if the camera should act like a fps } }