mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-04 15:00:09 +01:00
141 lines
4.6 KiB
Plaintext
141 lines
4.6 KiB
Plaintext
[gd_scene load_steps=11 format=3 uid="uid://di7sdmf1v6ycu"]
|
|
|
|
[ext_resource type="Script" uid="uid://bexg0uejjl5b6" path="res://skeleton_ik_runner.gd" id="1"]
|
|
[ext_resource type="Material" uid="uid://uslxtfi8ihx7" path="res://checker_floor.mat.tres" id="1_f0bh8"]
|
|
[ext_resource type="PackedScene" uid="uid://41fxuoounr3" path="res://model/godot_battle_bot.dae" id="4"]
|
|
[ext_resource type="Script" uid="uid://2hdiu4tx5w1k" path="res://target_from_mousepos.gd" id="5"]
|
|
[ext_resource type="Material" path="res://model/battle_bot_color.tres" id="6"]
|
|
[ext_resource type="Script" uid="uid://c4hjxjfb7uuyw" path="res://button_change_scene.gd" id="8"]
|
|
[ext_resource type="Script" uid="uid://dkmb1w54c1aqw" path="res://addons/sade/ik_look_at.gd" id="9"]
|
|
|
|
[sub_resource type="PlaneMesh" id="1"]
|
|
size = Vector2(40, 40)
|
|
|
|
[sub_resource type="BoxMesh" id="3"]
|
|
|
|
[sub_resource type="StandardMaterial3D" id="4"]
|
|
albedo_color = Color(0, 0.191406, 0.765625, 1)
|
|
roughness = 0.0
|
|
|
|
[node name="SkeletonIK3D" type="Node3D"]
|
|
|
|
[node name="Floor" type="MeshInstance3D" parent="."]
|
|
mesh = SubResource("1")
|
|
surface_material_override/0 = ExtResource("1_f0bh8")
|
|
|
|
[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="Camera3D" type="Camera3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 11.5, 11)
|
|
fov = 74.0
|
|
script = ExtResource("5")
|
|
MOVEMENT_SPEED = -8.0
|
|
flip_axis = true
|
|
|
|
[node name="Targets" type="Node3D" parent="Camera3D"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -8)
|
|
|
|
[node name="IK_LookAt_Head" type="Node3D" parent="Camera3D/Targets"]
|
|
script = ExtResource("9")
|
|
skeleton_path = NodePath("../../../GodotBattleBot/Armature/Skeleton3D")
|
|
bone_name = "Head"
|
|
additional_rotation = Vector3(90, 0, 0)
|
|
|
|
[node name="1MeterCube" type="MeshInstance3D" parent="Camera3D/Targets"]
|
|
mesh = SubResource("3")
|
|
surface_material_override/0 = SubResource("4")
|
|
|
|
[node name="TargetLeft" type="Marker3D" parent="Camera3D/Targets"]
|
|
transform = Transform3D(-0.179447, 0.98366, -0.0145678, 0.981822, 0.178142, -0.0654973, -0.0618319, -0.0260563, -0.997746, 0.653517, -0.112305, -0.760886)
|
|
|
|
[node name="TargetRight" type="Marker3D" parent="Camera3D/Targets"]
|
|
transform = Transform3D(-0.0217688, 0.998559, -0.0490576, 0.992503, 0.0274873, 0.119085, 0.120262, -0.0460975, -0.991671, -0.683053, 0.0251284, -0.811513)
|
|
|
|
[node name="GodotBattleBot" parent="." instance=ExtResource("4")]
|
|
|
|
[node name="godot_battle_bot" parent="GodotBattleBot/Armature/Skeleton3D" index="0"]
|
|
surface_material_override/0 = ExtResource("6")
|
|
|
|
[node name="SkeletonIK_Left" type="SkeletonIK3D" parent="GodotBattleBot/Armature/Skeleton3D" index="1"]
|
|
process_priority = 1
|
|
root_bone = &"Left_UpperArm"
|
|
tip_bone = &"Left_Hand"
|
|
use_magnet = true
|
|
magnet = Vector3(8, 6, 0)
|
|
target_node = NodePath("../../../../Camera3D/Targets/TargetLeft")
|
|
script = ExtResource("1")
|
|
|
|
[node name="SkeletonIK_Right" type="SkeletonIK3D" parent="GodotBattleBot/Armature/Skeleton3D" index="2"]
|
|
process_priority = 1
|
|
root_bone = &"Right_UpperArm"
|
|
tip_bone = &"Right_Hand"
|
|
use_magnet = true
|
|
magnet = Vector3(-8, 6, 0)
|
|
target_node = NodePath("../../../../Camera3D/Targets/TargetRight")
|
|
script = ExtResource("1")
|
|
|
|
[node name="Control" type="Control" parent="."]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="Panel" type="Panel" parent="Control"]
|
|
modulate = Color(1, 1, 1, 0.784314)
|
|
layout_mode = 1
|
|
anchors_preset = 12
|
|
anchor_top = 1.0
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_left = -2.0
|
|
offset_top = -70.0
|
|
offset_right = 4.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 0
|
|
|
|
[node name="Label" type="Label" parent="Control/Panel"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_left = 24.0
|
|
offset_top = 10.0
|
|
offset_right = -18.0
|
|
offset_bottom = -11.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
text = "SkeletonIK3D node
|
|
Move mouse to move IK targets"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="ButtonNext" type="Button" parent="Control"]
|
|
layout_mode = 0
|
|
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")
|
|
scene_to_change_to = "res://fps/fps_example.tscn"
|
|
|
|
[node name="ButtonPrev" type="Button" parent="Control"]
|
|
layout_mode = 0
|
|
anchor_top = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_left = 10.0
|
|
offset_top = -60.0
|
|
offset_right = 129.0
|
|
offset_bottom = -10.0
|
|
text = "Previous scene"
|
|
script = ExtResource("8")
|
|
scene_to_change_to = "res://fabrik_ik.tscn"
|
|
|
|
[editable path="GodotBattleBot"]
|