diff --git a/assets/pickaxe_arm.glb b/assets/pickaxe_arm.glb new file mode 100644 index 0000000..9c676a8 Binary files /dev/null and b/assets/pickaxe_arm.glb differ diff --git a/assets/pickaxe_arm.glb.import b/assets/pickaxe_arm.glb.import new file mode 100644 index 0000000..3464c83 --- /dev/null +++ b/assets/pickaxe_arm.glb.import @@ -0,0 +1,36 @@ +[remap] + +importer="scene" +importer_version=1 +type="PackedScene" +uid="uid://ccggyhqyue6fr" +path="res://.godot/imported/pickaxe_arm.glb-fc7bd95af30a47e37063710c848429b2.scn" + +[deps] + +source_file="res://assets/pickaxe_arm.glb" +dest_files=["res://.godot/imported/pickaxe_arm.glb-fc7bd95af30a47e37063710c848429b2.scn"] + +[params] + +nodes/root_type="" +nodes/root_name="" +nodes/apply_root_scale=true +nodes/root_scale=1.0 +nodes/import_as_skeleton_bones=false +meshes/ensure_tangents=true +meshes/generate_lods=true +meshes/create_shadow_meshes=true +meshes/light_baking=1 +meshes/lightmap_texel_size=0.2 +meshes/force_disable_compression=false +skins/use_named_skins=true +animation/import=true +animation/fps=30 +animation/trimming=false +animation/remove_immutable_tracks=true +animation/import_rest_as_RESET=false +import_script/path="" +_subresources={} +gltf/naming_version=1 +gltf/embedded_image_handling=1 diff --git a/pickaxe_arm.blend b/pickaxe_arm.blend index 33b9cb5..a4a170c 100644 Binary files a/pickaxe_arm.blend and b/pickaxe_arm.blend differ diff --git a/pickaxe_arm.blend1 b/pickaxe_arm.blend1 index c01f00d..c2604e4 100644 Binary files a/pickaxe_arm.blend1 and b/pickaxe_arm.blend1 differ diff --git a/scenes/body.tscn b/scenes/body.tscn index bbc2c9b..b974803 100644 --- a/scenes/body.tscn +++ b/scenes/body.tscn @@ -1,8 +1,11 @@ -[gd_scene load_steps=3 format=3 uid="uid://dgm3241ceqpim"] +[gd_scene load_steps=4 format=3 uid="uid://dgm3241ceqpim"] -[ext_resource type="Script" path="res://body.gd" id="1_21au4"] +[ext_resource type="Script" path="res://scripts/body.gd" id="1_21au4"] +[ext_resource type="PackedScene" uid="uid://cgqpfh5j5v3yd" path="res://scenes/icepick_arm.tscn" id="2_eoxv3"] [sub_resource type="SphereMesh" id="SphereMesh_jcpb6"] +radius = 5.0 +height = 10.0 [node name="Body" type="Node3D"] script = ExtResource("1_21au4") @@ -10,5 +13,7 @@ script = ExtResource("1_21au4") [node name="MeshInstance3D" type="MeshInstance3D" parent="."] mesh = SubResource("SphereMesh_jcpb6") -[node name="Marker3D" type="Marker3D" parent="."] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.49921, 0) +[node name="ArmPivot" type="Node3D" parent="."] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4.89921, 0) + +[node name="icepick_arm" parent="ArmPivot" instance=ExtResource("2_eoxv3")] diff --git a/scenes/icepick_arm.tscn b/scenes/icepick_arm.tscn new file mode 100644 index 0000000..17fe165 --- /dev/null +++ b/scenes/icepick_arm.tscn @@ -0,0 +1,19 @@ +[gd_scene load_steps=2 format=3 uid="uid://cgqpfh5j5v3yd"] + +[ext_resource type="PackedScene" uid="uid://ccggyhqyue6fr" path="res://assets/pickaxe_arm.glb" id="1_grvsx"] + +[node name="pickaxe_arm" instance=ExtResource("1_grvsx")] + +[node name="Sphere_004" parent="Armature/Skeleton3D" index="0"] +transform = Transform3D(0.919691, 0, -2.19271e-07, 0, 0.919691, 0, 2.19271e-07, 0, 0.919691, 0, -9.53674e-07, 0) + +[node name="Sphere_001" parent="Armature/Skeleton3D" index="1"] +transform = Transform3D(0.919691, 0, 0, 0, 0.919691, 0, 0, 0, 0.919691, 0, 0, 0) + +[node name="SkeletonIK3D" type="SkeletonIK3D" parent="Armature/Skeleton3D" index="3"] +root_bone = &"Bone" +tip_bone = &"Bone.011" +target_node = NodePath("../../Target") + +[node name="Target" type="Marker3D" parent="Armature" index="1"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 10.2, 0) diff --git a/scripts/arm.gd b/scripts/arm.gd new file mode 100644 index 0000000..e3a16cd --- /dev/null +++ b/scripts/arm.gd @@ -0,0 +1,13 @@ +extends Node3D + +@export var key: Key + + +# Called when the node enters the scene tree for the first time. +func _ready() -> void: + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta: float) -> void: + pass diff --git a/body.gd b/scripts/body.gd similarity index 100% rename from body.gd rename to scripts/body.gd