109 lines
3.7 KiB
Text
109 lines
3.7 KiB
Text
[gd_scene load_steps=13 format=3 uid="uid://cdk6hwb4hi2wc"]
|
|
|
|
[ext_resource type="Script" uid="uid://b0c02p6ckmpdq" path="res://Player/player.gd" id="1_2f8j2"]
|
|
[ext_resource type="PackedScene" uid="uid://cp7wldb12tpm8" path="res://assets/graphics/models/hand.obj" id="3_btcbx"]
|
|
[ext_resource type="Texture2D" uid="uid://1osrvxkcjngu" path="res://assets/graphics/textures/handtexture.png" id="4_gwnis"]
|
|
|
|
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_3rsb5"]
|
|
radius = 0.3
|
|
height = 1.8
|
|
|
|
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_gwnis"]
|
|
|
|
[sub_resource type="Sky" id="Sky_k53q1"]
|
|
sky_material = SubResource("ProceduralSkyMaterial_gwnis")
|
|
|
|
[sub_resource type="Environment" id="Environment_fhl08"]
|
|
background_mode = 2
|
|
sky = SubResource("Sky_k53q1")
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_k53q1"]
|
|
albedo_texture = ExtResource("4_gwnis")
|
|
|
|
[sub_resource type="Animation" id="Animation_k53q1"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Camera/hand:position")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Vector3(-0.439045, -2.29318, -0.10444)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_gwnis"]
|
|
resource_name = "touch"
|
|
loop_mode = 1
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Camera/hand:position")
|
|
tracks/0/interp = 2
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0.0333333, 1),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 0,
|
|
"values": [Vector3(-0.439045, -2.29318, -0.10444), Vector3(-0.439045, -1.7, -1.91879)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_fhl08"]
|
|
resource_name = "touch"
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Camera/hand:position")
|
|
tracks/0/interp = 2
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.366667, 1),
|
|
"transitions": PackedFloat32Array(1, 1, 1),
|
|
"update": 0,
|
|
"values": [Vector3(-0.439045, -2.29318, -0.10444), Vector3(-0.439, -1.7, -2.3), Vector3(-0.439045, -2.29318, -0.10444)]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_fhl08"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_k53q1"),
|
|
&"punch": SubResource("Animation_gwnis"),
|
|
&"touch": SubResource("Animation_fhl08")
|
|
}
|
|
|
|
[node name="Player" type="CharacterBody3D"]
|
|
script = ExtResource("1_2f8j2")
|
|
|
|
[node name="CShape" type="CollisionShape3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.9, 0)
|
|
shape = SubResource("CapsuleShape3D_3rsb5")
|
|
debug_color = Color(0.141176, 0.427451, 0.92549, 0.784314)
|
|
|
|
[node name="Camera" type="Camera3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.7, 0)
|
|
environment = SubResource("Environment_fhl08")
|
|
fov = 80.0
|
|
|
|
[node name="hand" parent="Camera" instance=ExtResource("3_btcbx")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.439045, -2.29318, -0.10444)
|
|
|
|
[node name="Cube" parent="Camera/hand" index="0"]
|
|
transform = Transform3D(-0.103623, 0, 0.191626, 0, 0.289734, 0, -0.33763, 0, -0.0588126, 1.31232, 0.743218, 1.03127)
|
|
surface_material_override/0 = SubResource("StandardMaterial3D_k53q1")
|
|
|
|
[node name="RayCast3D" type="RayCast3D" parent="Camera"]
|
|
unique_name_in_owner = true
|
|
transform = Transform3D(1, 0, 0, 0, -0.0119028, -0.999929, 0, 0.999929, -0.0119028, 0, -0.33609, 0)
|
|
target_position = Vector3(0, -7, 0)
|
|
collide_with_areas = true
|
|
collide_with_bodies = false
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
unique_name_in_owner = true
|
|
libraries = {
|
|
&"": SubResource("AnimationLibrary_fhl08")
|
|
}
|
|
|
|
[editable path="Camera/hand"]
|