[gd_scene load_steps=10 format=3 uid="uid://dyhjvb7q0b3j"] [ext_resource type="Texture2D" uid="uid://bw3q8aq6gfuof" path="res://addons/sade/editor_gizmo_texture.png" id="1"] [ext_resource type="PackedScene" uid="uid://ctssefekxjogg" path="res://model/godot_battle_bot.dae" id="2"] [ext_resource type="Material" path="res://model/battle_bot_color.tres" id="3"] [ext_resource type="Script" path="res://target_from_mousepos.gd" id="5"] [ext_resource type="Script" path="res://addons/sade/ik_look_at.gd" id="6"] [ext_resource type="Texture2D" uid="uid://dhgpf3w8mh4ed" path="res://addons/sade/ik_look_at.png" id="7"] [ext_resource type="Script" path="res://button_change_scene.gd" id="8"] [sub_resource type="PlaneMesh" id="1"] size = Vector2(40, 40) [sub_resource type="StandardMaterial3D" id="2"] albedo_texture = ExtResource( "1" ) roughness = 0.2 uv1_scale = Vector3(0.25, 0.25, 0.25) uv1_triplanar = true texture_filter = 0 [node name="LookAtIK" type="Node3D"] [node name="Floor" type="MeshInstance3D" parent="."] mesh = SubResource( "1" ) surface_material_override/0 = SubResource( "2" ) [node name="DirectionalLight3D" type="DirectionalLight3D" parent="."] transform = Transform3D(0.56827, 0.673454, -0.472789, 0, 0.574581, 0.818448, 0.822842, -0.465099, 0.326517, -9.77531, 11.5204, 11.766) [node name="GodotBattleBot" parent="." instance=ExtResource( "2" )] [node name="godot_battle_bot" parent="GodotBattleBot/Armature/Skeleton3D" index="0"] surface_material_override/0 = ExtResource( "3" ) [node name="Camera3D" type="Camera3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 11.501, 11) fov = 74.0 script = ExtResource( "5" ) MOVEMENT_SPEED = -3.0 flip_axis = true [node name="Targets" type="Node3D" parent="Camera3D"] [node name="IK_LookAt_Head" type="Node3D" parent="Camera3D/Targets"] script = ExtResource( "6" ) __meta__ = { "_editor_icon": ExtResource( "7" ) } skeleton_path = NodePath("../../../GodotBattleBot/Armature/Skeleton3D") bone_name = "Head" additional_rotation = Vector3(90, 0, 0) [node name="IK_LookAt_LeftArm" type="Node3D" parent="Camera3D/Targets"] script = ExtResource( "6" ) __meta__ = { "_editor_icon": ExtResource( "7" ) } skeleton_path = NodePath("../../../GodotBattleBot/Armature/Skeleton3D") bone_name = "Left_UpperArm" [node name="IK_LookAt_RightArm" type="Node3D" parent="Camera3D/Targets"] script = ExtResource( "6" ) __meta__ = { "_editor_icon": ExtResource( "7" ) } skeleton_path = NodePath("../../../GodotBattleBot/Armature/Skeleton3D") bone_name = "Right_UpperArm" additional_rotation = Vector3(0, 0, 180) [node name="Control" type="Control" parent="."] anchor_right = 1.0 anchor_bottom = 1.0 __meta__ = { "_edit_use_anchors_": false } [node name="Panel" type="Panel" parent="Control"] modulate = Color(1, 1, 1, 0.784314) anchor_top = 1.0 anchor_right = 1.0 anchor_bottom = 1.0 offset_left = -2.0 offset_top = -70.0 offset_right = 4.0 __meta__ = { "_edit_use_anchors_": false } [node name="Label" type="Label" parent="Control/Panel"] anchor_right = 1.0 anchor_bottom = 1.0 offset_left = 12.0 offset_top = 10.0 offset_right = -18.0 offset_bottom = -29.0 text = "LookAt IK Move mouse to move IK targets" __meta__ = { "_edit_use_anchors_": false } [node name="ButtonNext" type="Button" parent="Control"] anchor_left = 1.0 anchor_top = 1.0 anchor_right = 1.0 anchor_bottom = 1.0 offset_left = -124.0 offset_top = -60.0 offset_right = -5.0 offset_bottom = -10.0 text = "Next scene" script = ExtResource( "8" ) __meta__ = { "_edit_use_anchors_": false } scene_to_change_to = "res://fabrik_ik.tscn" [editable path="GodotBattleBot"]