This commit is contained in:
parent
db3240dd4c
commit
4ef9927141
|
@ -0,0 +1,7 @@
|
||||||
|
extends Node3D
|
||||||
|
|
||||||
|
func _ready():
|
||||||
|
set_as_top_level(true)
|
||||||
|
|
||||||
|
func _process(delta):
|
||||||
|
global_transform.origin = $"../grape_man".get_pickup_bone_location()
|
Binary file not shown.
|
@ -153,7 +153,7 @@ transform = Transform3D(0.065, 0, 0, 0, 0.065, 0, 0, 0, 0.065, 0, 0, 0)
|
||||||
script = ExtResource("2_ksje8")
|
script = ExtResource("2_ksje8")
|
||||||
|
|
||||||
[node name="Skeleton3D" parent="rig" index="0"]
|
[node name="Skeleton3D" parent="rig" index="0"]
|
||||||
bones/0/rotation = Quaternion(0.0676631, 0, 0, 0.997708)
|
bones/0/rotation = Quaternion(0.0930424, 0, 0, 0.995662)
|
||||||
bones/1/rotation = Quaternion(-0.0891896, 1.18734e-07, -1.06322e-08, 0.996015)
|
bones/1/rotation = Quaternion(-0.0891896, 1.18734e-07, -1.06322e-08, 0.996015)
|
||||||
bones/2/rotation = Quaternion(0.0133933, -1.19199e-07, 1.5966e-09, 0.99991)
|
bones/2/rotation = Quaternion(0.0133933, -1.19199e-07, 1.5966e-09, 0.99991)
|
||||||
bones/3/rotation = Quaternion(-0.00997737, 0.100365, -0.694951, 0.711948)
|
bones/3/rotation = Quaternion(-0.00997737, 0.100365, -0.694951, 0.711948)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
[gd_scene load_steps=6 format=3 uid="uid://7utef1nnena8"]
|
[gd_scene load_steps=6 format=3 uid="uid://7utef1nnena8"]
|
||||||
|
|
||||||
[ext_resource type="Script" path="res://Player.gd" id="1_7gpdp"]
|
[ext_resource type="Script" path="res://Player.gd" id="1_7gpdp"]
|
||||||
[ext_resource type="Script" path="res://Models/grape_man.gd" id="2_apuey"]
|
[ext_resource type="PackedScene" uid="uid://bgoo1lbt28na" path="res://Models/grape_man.tscn" id="2_ctyy5"]
|
||||||
[ext_resource type="Script" path="res://Holster.gd" id="3_a68da"]
|
[ext_resource type="Script" path="res://Holster.gd" id="3_a68da"]
|
||||||
|
|
||||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_kb4ms"]
|
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_kb4ms"]
|
||||||
|
@ -17,9 +17,7 @@ script = ExtResource("1_7gpdp")
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.21, 0)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.21, 0)
|
||||||
shape = SubResource("CapsuleShape3D_kb4ms")
|
shape = SubResource("CapsuleShape3D_kb4ms")
|
||||||
|
|
||||||
[node name="grape_man" type="Node3D" parent="."]
|
[node name="grape_man" parent="." instance=ExtResource("2_ctyy5")]
|
||||||
transform = Transform3D(0.065, 0, 0, 0, 0.065, 0, 0, 0, 0.065, 0, 0, 0)
|
|
||||||
script = ExtResource("2_apuey")
|
|
||||||
|
|
||||||
[node name="CameraMount" type="Node3D" parent="."]
|
[node name="CameraMount" type="Node3D" parent="."]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.3, 0)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.3, 0)
|
||||||
|
@ -37,5 +35,3 @@ script = ExtResource("3_a68da")
|
||||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Holster/Area3D"]
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Holster/Area3D"]
|
||||||
transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0, 0, 0)
|
transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0, 0, 0)
|
||||||
shape = SubResource("SphereShape3D_6l1w6")
|
shape = SubResource("SphereShape3D_6l1w6")
|
||||||
|
|
||||||
[connection signal="anim_check_grab" from="grape_man" to="." method="_on_grape_man_anim_check_grab"]
|
|
||||||
|
|
|
@ -6,13 +6,11 @@
|
||||||
|
|
||||||
[sub_resource type="CapsuleMesh" id="CapsuleMesh_b3srs"]
|
[sub_resource type="CapsuleMesh" id="CapsuleMesh_b3srs"]
|
||||||
|
|
||||||
[node name="Node3D" type="Node3D"]
|
[node name="CharacterBody3D" type="CharacterBody3D"]
|
||||||
script = ExtResource("1_ardgw")
|
script = ExtResource("1_ardgw")
|
||||||
|
|
||||||
[node name="RigidBody3D" type="RigidBody3D" parent="."]
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||||
|
|
||||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="RigidBody3D"]
|
|
||||||
shape = SubResource("CapsuleShape3D_s4x8n")
|
shape = SubResource("CapsuleShape3D_s4x8n")
|
||||||
|
|
||||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="RigidBody3D/CollisionShape3D"]
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="CollisionShape3D"]
|
||||||
mesh = SubResource("CapsuleMesh_b3srs")
|
mesh = SubResource("CapsuleMesh_b3srs")
|
||||||
|
|
Loading…
Reference in New Issue