[gd_scene load_steps=6 format=2] [ext_resource path="res://Ingame/BodyParts/PushingBodyPart.tscn" type="PackedScene" id=1] [ext_resource path="res://3D Input/untitled.glb" type="PackedScene" id=2] [sub_resource type="GDScript" id=1] script/source = "extends PushingBodyPart onready var anim = get_node(\"Mesh/AnimationPlayer\") # Called when the node enters the scene tree for the first time. func _ready() -> void: pass # Replace with function body. func action(): anim.play(\"ArmatureAction001\") func push(body): base.apply_impulse(touch_area.transform.origin, base.transform.basis.y * 6.0) # Called every frame. 'delta' is the elapsed time since the previous frame. #func _process(delta: float) -> void: # pass " [sub_resource type="SphereShape" id=4] [sub_resource type="SphereShape" id=3] radius = 0.803016 [node name="Arm" instance=ExtResource( 1 )] script = SubResource( 1 ) [node name="PartCollider" parent="." index="0"] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -8 ) shape = SubResource( 4 ) [node name="Mesh" parent="." index="1" instance=ExtResource( 2 )] [node name="BoneAttachment" type="BoneAttachment" parent="Mesh/Armature/Skeleton" index="1"] transform = Transform( 1, -1.98247e-23, -2.98292e-24, 6.50669e-24, -9.49949e-08, 1, -2.07684e-23, -1, -9.49949e-08, -2.23781e-16, -0.0078205, -5.05441 ) bone_name = "bone_2" [node name="RemoteTransform" type="RemoteTransform" parent="Mesh/Armature/Skeleton/BoneAttachment" index="0"] remote_path = NodePath("../../../../../TouchArea") [node name="TouchArea" parent="." index="2"] transform = Transform( 1, -1.98247e-23, -2.98292e-24, 6.50669e-24, -9.49949e-08, 1, -2.07684e-23, -1, -9.49949e-08, -2.23781e-16, -0.0078205, -7.60024 ) [node name="CollisionShape" type="CollisionShape" parent="TouchArea" index="0"] transform = Transform( 1, 2.98291e-24, -1.98247e-23, -2.07684e-23, -9.49949e-08, -1, -6.50669e-24, 1, -9.49949e-08, 2.23781e-16, 0.399765, 0.00782054 ) shape = SubResource( 3 ) [editable path="Mesh"]