Lotos Changes
Made Disc handled By Playert
Added Throw State (handle it better soon™️)
Added basic example animation that increases in speed as you move
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://ctgbbvgfnocql"]
|
||||
[gd_scene load_steps=9 format=3 uid="uid://ctgbbvgfnocql"]
|
||||
|
||||
[ext_resource type="Script" path="res://player3d.gd" id="1_8eds3"]
|
||||
|
||||
@@ -14,6 +14,43 @@ height = 1.25
|
||||
[sub_resource type="SphereShape3D" id="SphereShape3D_1okp8"]
|
||||
radius = 0.25
|
||||
|
||||
[sub_resource type="Animation" id="Animation_s653s"]
|
||||
resource_name = "player_run"
|
||||
length = 2.0
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:rotation")
|
||||
tracks/0/interp = 2
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 0.5, 1, 1.5, 2),
|
||||
"transitions": PackedFloat32Array(1, 1, 1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0, 0, 0), Vector3(0, 0, -0.261799), Vector3(0, 0, -2.98023e-08), Vector3(0, 0, 0.261799), Vector3(0, 0, -1.49012e-08)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_wbwlv"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:rotation")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0, 0, 0)]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_aq07q"]
|
||||
_data = {
|
||||
"RESET": SubResource("Animation_wbwlv"),
|
||||
"player_run": SubResource("Animation_s653s")
|
||||
}
|
||||
|
||||
[node name="Player" type="CharacterBody3D"]
|
||||
script = ExtResource("1_8eds3")
|
||||
|
||||
@@ -56,3 +93,9 @@ collision_mask = 2
|
||||
|
||||
[node name="Hand" type="CollisionShape3D" parent="Torso/RightArm/Hand"]
|
||||
shape = SubResource("SphereShape3D_1okp8")
|
||||
|
||||
[node name="Running" type="AnimationPlayer" parent="."]
|
||||
speed_scale = 2.0
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_aq07q")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user