EricXu1728 / Godot4SourceEngineMovement

Recreation of Source Engine Movement in godot4. Thank you to OakleyCyclops for making the Godot3 version which I messed around with.
MIT License
31 stars 3 forks source link

First Person or Third Person? #7

Closed Gata-chan closed 1 month ago

Gata-chan commented 1 month ago

As Source is a First Person Shooter I expected this module to be as well, however when I open it in my editor it's third-person!

I am unsure if it's intentional since in Element Viewer the camera is postioned in First-Person perspective (pictured below): image

however when opening the project the perspective is from the third person (pictured below): image

While investigating I found that code metioned "spring" attachements (pictured below): image

which are characteristic of third person games and seems intentional.

Can you provide any clarification if this module is meant to be used in third or first person?

EricXu1728 commented 1 month ago

It is supposed to be third person. You can make it 1st person by changing the player prefab by removing the spring component, adding back in the camera, and removing the related spring code.

Another solution would be to set the spring's length to 0. This is generally bad practice as I would recommend you edit to learn more of how godot works, but it will get you results.

You can edit this by finding player.tscn and editing it. image image

I would recommend learning more about how godot deals with prefabs and common components. https://docs.godotengine.org/en/stable/classes/class_springarm3d.html