Godot Engine

Godot Engine

VegeTato Oct 22, 2019 @ 11:47am
GTA camera look a like, help.
hello, i would like to know if is it possible to make a camera like gta or like any other Third Person pc games camera, (free look around with mouse, character rotation is locked while looking around)

i am going to make a game gta look a like but i need the most basic thing and thats the 3ird person camera, Thanks :)
< >
Showing 1-4 of 4 comments
Valdar Oct 22, 2019 @ 4:56pm 
Yes, if I understand you correctly. If you attach the camera node as a child of your player node, it will follow your player’s movement and rotation as if it were a first person view, but also allow you to rotate the camera node separately from the player ( with the mouse if you want). If you don’t want the camera to rotate with the player’s turns, just make it a separate node and update its position with the player’s position. That would allow the camera to follow your player, but give you full control of the rotation.
VegeTato Oct 23, 2019 @ 3:19am 
Originally posted by Valdar:
Yes, if I understand you correctly. If you attach the camera node as a child of your player node, it will follow your player’s movement and rotation as if it were a first person view, but also allow you to rotate the camera node separately from the player ( with the mouse if you want). If you don’t want the camera to rotate with the player’s turns, just make it a separate node and update its position with the player’s position. That would allow the camera to follow your player, but give you full control of the rotation.

yes that's what i want ( If you don’t want the camera to rotate with the player’s turns)
free look camera with mouse without rotating the player
but i am new to Godot >.< and i don't know how to code
can you please tell me how to do that ?

-added character (cube) as Player
-added CollisionShape to the plane under character (to not let him fall)
-added KinematicBody as parent to Player
-added CollisionShape as child to Player
-added Camera as child to Player

that's all i did, i didn't make movement for the player yet because i am focusing at the camera, its just a test project to make GTA camera.
Valdar Oct 23, 2019 @ 5:11am 
You'll need to code the inputs and movements which is not that difficult, but too much to try to explain in this forum. There is an FSP tutorial in the Docs here https://docs.godotengine.org/en/3.1/tutorials/3d/fps_tutorial/part_one.html . Just have a look at the script and explanations near the bottom of Part 1. It’s not exactly what you need, but it is a good breakdown of what’s required to code the movement and you can just extract what you need. There are lots of other tuts on the internet that may help as well. If you don't want to learn to code, Godot has Visual Scripting now as well, but I don't use it or know how functional it is at this point. Hope it helps
VegeTato Oct 23, 2019 @ 7:44am 
Originally posted by Valdar:
You'll need to code the inputs and movements which is not that difficult, but too much to try to explain in this forum. There is an FSP tutorial in the Docs here https://docs.godotengine.org/en/3.1/tutorials/3d/fps_tutorial/part_one.html . Just have a look at the script and explanations near the bottom of Part 1. It’s not exactly what you need, but it is a good breakdown of what’s required to code the movement and you can just extract what you need. There are lots of other tuts on the internet that may help as well. If you don't want to learn to code, Godot has Visual Scripting now as well, but I don't use it or know how functional it is at this point. Hope it helps
i am using visual scripting, i made new topic to get few help in that because its new to godot and there is no visual scripting tutorials about 3D in google or in youtube :/ gota wait someone to make tutorials about both the camera for 3d and visual scripting, thank you anyway :)
Last edited by VegeTato; Oct 23, 2019 @ 7:45am
< >
Showing 1-4 of 4 comments
Per page: 1530 50

Date Posted: Oct 22, 2019 @ 11:47am
Posts: 4