/Godot-Human-For-Scale

Simple controllable character that you can use to run around in your Godot level.

Primary LanguageGDScriptMIT LicenseMIT

Godot-Human-For-Scale

Simple controllable character that you can use to run around in your level to get a sense of scale. No input bindings or camera set up necessary, just drag and drop into your scene. The character is 5'10. (177.8 cm)

Showcase.mp4

How to use

  1. Clone or download the Github repository.
  2. Move the repository folder (Godot-Human-For-Scale) to the root of your project.
    The Godot-Human-For-Scale folder has to be at the root of your project for Godot-Human-For-Scale to work.
  3. Drag and drop the player scene (Human-For-Scale.tscn) into the scene you want to walk around in.
  4. Run your scene.

Make sure your scene has colliders for the floor at least, or the player will just fall through the map!

Controls

  • ESCAPE to capture/uncapture mouse
    Mouse is uncaptured on start!

  • W-A-S-D to move
    SHIFT to sprint
    SPACE to jump
    TILDE(~) to noclip

  • V to switch third person/first person
    RIGHT CLICK to zoom/focus
    TAB to switch third person camera shoulders

  • LEFT CLICK to pick up/throw object with physics gun

Controls not working?

Mouse look not working?
A Control node is likely capturing mouse input. Find that Control node, set its Mouse Filter to Pass/Ignore.

Keyboard controls not working?
A Control node is likely capturing keyboard input, most likely a button or text box. Find that Control node, set its Focus Mode to None.

Extra Options

You can enable depth of field for the zoom functionality. No camera attributes setup necessary.
You can disable the character's shadow in first person view.
You can enable audio, which will enable the audio listener, footstep sounds, and physics interactions sounds.
You can enable the physics gun, which allows you pick up and throw RigidBodies.

options

Credits

Uses the fantastic mannequiny from GDQuest's godot-3d-mannequin.
Uses Creative Commons sounds, attributions are here.