Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
8897be3be1 | ||
af8f505fcc | |||
4276bf20c5 | |||
f4ec2bf05d | |||
|
a41f5afb4f | ||
|
e5cfe86cb5 |
21
LICENSE.md
Normal file
21
LICENSE.md
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2023 vaporvee
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
Before Width: | Height: | Size: 72 KiB After Width: | Height: | Size: 72 KiB |
@@ -3,15 +3,15 @@
|
|||||||
importer="texture"
|
importer="texture"
|
||||||
type="CompressedTexture2D"
|
type="CompressedTexture2D"
|
||||||
uid="uid://nqd2l5xjbwh1"
|
uid="uid://nqd2l5xjbwh1"
|
||||||
path="res://.godot/imported/gd-mono-thirdpersoncontroller.png-1aea9d41ab1691227a784d4d60205324.ctex"
|
path="res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.ctex"
|
||||||
metadata={
|
metadata={
|
||||||
"vram_texture": false
|
"vram_texture": false
|
||||||
}
|
}
|
||||||
|
|
||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://gd-mono-thirdpersoncontroller.png"
|
source_file="res://icon.png"
|
||||||
dest_files=["res://.godot/imported/gd-mono-thirdpersoncontroller.png-1aea9d41ab1691227a784d4d60205324.ctex"]
|
dest_files=["res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.ctex"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
@@ -15,7 +15,7 @@ run/main_scene="res://scenes/main.tscn"
|
|||||||
config/features=PackedStringArray("4.0", "Forward Plus")
|
config/features=PackedStringArray("4.0", "Forward Plus")
|
||||||
run/max_fps=144
|
run/max_fps=144
|
||||||
boot_splash/show_image=false
|
boot_splash/show_image=false
|
||||||
config/icon="res://gd-mono-thirdpersoncontroller.png"
|
config/icon="res://icon.png"
|
||||||
|
|
||||||
[autoload]
|
[autoload]
|
||||||
|
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
# Godot Mono thirdperson controller
|
# Godot Mono thirdperson controller
|
||||||
This is a working thirdperson controller made in the mono version of godot with C# <br>
|
This is a working thirdperson controller made in the mono version of godot with C# <br>
|
||||||
Currently running in Godot 4 beta 10
|
Currently running in Godot 4 beta 10<br>
|
||||||
|
<br>
|
||||||
|
Demo video: https://www.youtube.com/watch?v=qTzU90Vj3Nw
|
||||||
|
@@ -6,8 +6,8 @@ public partial class player : CharacterBody3D
|
|||||||
[Export] float jumpVelocity = 5f;
|
[Export] float jumpVelocity = 5f;
|
||||||
[Export] float gravity = 14f;
|
[Export] float gravity = 14f;
|
||||||
[Export(PropertyHint.Range, "0.1,1.0")] float mouseSensitivity = 0.3f;
|
[Export(PropertyHint.Range, "0.1,1.0")] float mouseSensitivity = 0.3f;
|
||||||
[Export(PropertyHint.Range, "-90,0,1")] float minMousePitch = -90f;
|
[Export(PropertyHint.Range, "-90,0,1")] float minMousePitch = -50f;
|
||||||
[Export(PropertyHint.Range, "0,90,1")] float maxMousePitch = 90f;
|
[Export(PropertyHint.Range, "0,90,1")] float maxMousePitch = 50f;
|
||||||
|
|
||||||
public override void _Process(double delta)
|
public override void _Process(double delta)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user