From fc3d32933862e664c2a3b28d711f4bf03bb56245 Mon Sep 17 00:00:00 2001 From: Davi Date: Sat, 13 Jun 2026 00:51:57 -0300 Subject: [PATCH] provisorio 2 --- prefabs/Telas/Debug/test_debug.tscn | 32 ++++++++++++++--------------- project.godot | 4 ++++ test/Scripts/Debug/player_debug.gd | 1 + test/Scripts/armadilha.gd | 16 ++++++--------- 4 files changed, 27 insertions(+), 26 deletions(-) diff --git a/prefabs/Telas/Debug/test_debug.tscn b/prefabs/Telas/Debug/test_debug.tscn index 2a17d96..6457399 100644 --- a/prefabs/Telas/Debug/test_debug.tscn +++ b/prefabs/Telas/Debug/test_debug.tscn @@ -2772,8 +2772,8 @@ bones/11/name = "front_leg_IK.L" bones/11/parent = 0 bones/11/rest = Transform3D(-3.5762787e-07, -0.99999994, -3.7252885e-08, 0.99999994, -3.5762787e-07, -3.7252896e-08, 3.7252885e-08, -3.7252896e-08, 1, -0.55542713, 0.26531094, 0.10443466) bones/11/enabled = true -bones/11/position = Vector3(-0.34543, 0.4905, 0.00443466) -bones/11/rotation = Quaternion(-0.0032242003, -0.0013530361, 0.38694865, 0.92209476) +bones/11/position = Vector3(-0.33039516, 0.47790238, 0.018444277) +bones/11/rotation = Quaternion(0.096034884, 0.040300164, 0.3848465, 0.91708577) bones/11/scale = Vector3(0.99999994, 0.99999994, 1) bones/12/name = "front_hand_anchor.L" bones/12/parent = 11 @@ -2807,7 +2807,7 @@ bones/16/name = "body" bones/16/parent = 0 bones/16/rest = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.02000001, 0.35000002) bones/16/enabled = true -bones/16/position = Vector3(0, -0.02, 0.36409014) +bones/16/position = Vector3(0.0010368424, -0.02, 0.3669549) bones/16/rotation = Quaternion(0, 0, 0, 1) bones/16/scale = Vector3(1, 1, 1) bones/17/name = "middle_upper_leg.L" @@ -2815,91 +2815,91 @@ bones/17/parent = 16 bones/17/rest = Transform3D(-0.0007859469, -0.9998689, 0.016171925, 0.9998689, -0.00052421005, 0.016182521, -0.016171923, 0.016182525, 0.9997382, -0.04632669, 0.113814235, -0.24556553) bones/17/enabled = true bones/17/position = Vector3(-0.04632669, 0.113814235, -0.24556553) -bones/17/rotation = Quaternion(0.1395674, 0.15406053, 0.625597, 0.7519408) +bones/17/rotation = Quaternion(0.1354107, 0.1507381, 0.6263595, 0.7527389) bones/17/scale = Vector3(1, 1, 0.99999994) bones/18/name = "middle_lower_leg.L" bones/18/parent = 17 bones/18/rest = Transform3D(0.9994814, 0.0015635336, -0.0321615, -0.00052741705, 0.99948126, 0.03219933, 0.032195162, -0.032165673, 0.99896383, 3.1723175e-09, 0.27702358, 3.3760443e-09) bones/18/enabled = true bones/18/position = Vector3(3.1723175e-09, 0.27702358, 3.3760443e-09) -bones/18/rotation = Quaternion(-0.62515205, -0.012558274, -0.020308575, 0.7801377) +bones/18/rotation = Quaternion(-0.6211154, -0.012610109, -0.020177437, 0.7833579) bones/18/scale = Vector3(0.99999994, 0.99999994, 0.99999994) bones/19/name = "rear_upper_leg.L" bones/19/parent = 16 bones/19/rest = Transform3D(-0.0008621215, -0.99984956, 0.017322179, 0.99984956, -0.00056180474, 0.01733452, -0.01732218, 0.017334517, 0.99969965, -0.023978366, -0.18000004, -0.24556553) bones/19/enabled = true bones/19/position = Vector3(-0.023978366, -0.18000004, -0.24556553) -bones/19/rotation = Quaternion(0.08228339, 0.2598134, 0.8576909, 0.43599632) +bones/19/rotation = Quaternion(0.07940507, 0.25499132, 0.8583332, 0.4381079) bones/19/scale = Vector3(0.99999994, 0.99999994, 0.99999994) bones/20/name = "rear_lower_leg.L" bones/20/parent = 19 bones/20/rest = Transform3D(0.99940586, 0.001713167, -0.03442248, -0.0005260503, 0.99940574, 0.03446617, 0.03446107, -0.034427587, 0.9988128, 7.0867827e-09, 0.25908458, -2.3283064e-09) bones/20/enabled = true bones/20/position = Vector3(7.0867827e-09, 0.25908458, -2.3283064e-09) -bones/20/rotation = Quaternion(-0.7792756, -0.010787983, -0.025328401, 0.6260765) +bones/20/rotation = Quaternion(-0.7764435, -0.010848514, -0.025236348, 0.62958807) bones/20/scale = Vector3(0.99999994, 1, 0.9999999) bones/21/name = "front_upper_leg.L" bones/21/parent = 16 bones/21/rest = Transform3D(-0.0008288622, -0.9998581, 0.016824983, 0.9998581, -0.00054554804, 0.016836504, -0.016824935, 0.01683655, 0.9997167, -0.023978367, 0.28531107, -0.24556553) bones/21/enabled = true bones/21/position = Vector3(-0.0239784, 0.285311, -0.245566) -bones/21/rotation = Quaternion(0.19208063, 0.06843441, 0.48057902, 0.852916) +bones/21/rotation = Quaternion(0.235993, 0.059501167, 0.49518886, 0.8339994) bones/21/scale = Vector3(0.99999994, 0.99999994, 1) bones/22/name = "front_lower_leg.L" bones/22/parent = 21 bones/22/rest = Transform3D(0.99943054, 0.0016599107, -0.033703096, -0.00052195875, 0.9994302, 0.033744767, 0.03373992, -0.03370796, 0.99886185, 1.4013494e-08, 0.26626235, 0) bones/22/enabled = true bones/22/position = Vector3(1.4013494e-08, 0.26626235, 0) -bones/22/rotation = Quaternion(-0.638868, -0.012972151, -0.020665249, 0.7689295) +bones/22/rotation = Quaternion(-0.6833654, -0.012309228, -0.022104593, 0.7296381) bones/22/scale = Vector3(1, 0.9999998, 0.9999998) bones/23/name = "head" bones/23/parent = 16 bones/23/rest = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -5.2978834e-18, 0.3017158, 0.02385953) bones/23/enabled = true bones/23/position = Vector3(-5.2978834e-18, 0.3017158, 0.02385953) -bones/23/rotation = Quaternion(0, 0.12013704, 0, 0.9927573) +bones/23/rotation = Quaternion(0, 0, 0.16565707, 0.98618346) bones/23/scale = Vector3(1, 1, 1) bones/24/name = "middle_upper_leg.R" bones/24/parent = 16 bones/24/rest = Transform3D(-0.0007859469, 0.9998689, -0.016171925, -0.9998689, -0.00052421005, 0.016182521, 0.016171923, 0.016182525, 0.9997382, 0.04632669, 0.113814235, -0.24556553) bones/24/enabled = true bones/24/position = Vector3(0.04632669, 0.113814235, -0.24556553) -bones/24/rotation = Quaternion(0.1395674, -0.15406053, -0.625597, 0.7519408) +bones/24/rotation = Quaternion(0.13700728, -0.15219927, -0.6256628, 0.75273526) bones/24/scale = Vector3(1, 1, 0.99999994) bones/25/name = "middle_lower_leg.R" bones/25/parent = 24 bones/25/rest = Transform3D(0.9994814, -0.0015635336, 0.0321615, 0.00052741705, 0.99948126, 0.03219933, -0.032195162, -0.032165673, 0.99896383, -3.1723175e-09, 0.27702358, 3.3760443e-09) bones/25/enabled = true bones/25/position = Vector3(-3.1723175e-09, 0.27702358, 3.3760443e-09) -bones/25/rotation = Quaternion(-0.62515205, 0.012558274, 0.020308575, 0.7801377) +bones/25/rotation = Quaternion(-0.6255517, 0.012553112, 0.020321578, 0.779817) bones/25/scale = Vector3(0.99999994, 0.99999994, 0.99999994) bones/26/name = "rear_upper_leg.R" bones/26/parent = 16 bones/26/rest = Transform3D(-0.0008621215, 0.99984956, -0.017322179, -0.99984956, -0.00056180474, 0.01733452, 0.01732218, 0.017334517, 0.99969965, 0.023978366, -0.18000004, -0.24556553) bones/26/enabled = true bones/26/position = Vector3(0.023978366, -0.18000004, -0.24556553) -bones/26/rotation = Quaternion(0.08228339, -0.2598134, -0.8576909, 0.43599632) +bones/26/rotation = Quaternion(0.08001848, -0.25562063, -0.85926217, 0.4358024) bones/26/scale = Vector3(0.99999994, 0.99999994, 0.99999994) bones/27/name = "rear_lower_leg.R" bones/27/parent = 26 bones/27/rest = Transform3D(0.99940586, -0.001713167, 0.03442248, 0.0005260503, 0.99940574, 0.03446617, -0.03446107, -0.034427587, 0.9988128, -7.0867827e-09, 0.25908458, -2.3283064e-09) bones/27/enabled = true bones/27/position = Vector3(-7.0867827e-09, 0.25908458, -2.3283064e-09) -bones/27/rotation = Quaternion(-0.7792756, 0.010787983, 0.025328401, 0.6260765) +bones/27/rotation = Quaternion(-0.7788288, 0.010797596, 0.025313891, 0.62663263) bones/27/scale = Vector3(0.99999994, 1, 0.9999999) bones/28/name = "front_upper_leg.R" bones/28/parent = 16 bones/28/rest = Transform3D(-0.0008288622, 0.9998581, -0.016824983, -0.9998581, -0.00054554804, 0.016836504, 0.016824935, 0.01683655, 0.9997167, 0.023978367, 0.28531107, -0.24556553) bones/28/enabled = true bones/28/position = Vector3(0.0239784, 0.285311, -0.245566) -bones/28/rotation = Quaternion(0.1861881, -0.06634803, -0.47060275, 0.8599215) +bones/28/rotation = Quaternion(0.18292494, -0.0648184, -0.4702591, 0.86092603) bones/28/scale = Vector3(0.99999994, 0.99999994, 1) bones/29/name = "front_lower_leg.R" bones/29/parent = 28 bones/29/rest = Transform3D(0.99943054, -0.0016599107, 0.033703096, 0.00052195875, 0.9994302, 0.033744767, -0.03373992, -0.03370796, 0.99886185, -1.4013494e-08, 0.26626235, 0) bones/29/enabled = true bones/29/position = Vector3(-1.4013494e-08, 0.26626235, 0) -bones/29/rotation = Quaternion(-0.6263393, 0.013144997, 0.020259961, 0.7791765) +bones/29/rotation = Quaternion(-0.626088, 0.013148391, 0.020251838, 0.7793785) bones/29/scale = Vector3(1, 0.9999998, 0.9999998) bones/30/name = "middle_leg_IK.R" bones/30/parent = 0 diff --git a/project.godot b/project.godot index 748fcf4..bc2f41e 100644 --- a/project.godot +++ b/project.godot @@ -15,6 +15,10 @@ run/main_scene="uid://cr7p1pwsut4lb" config/features=PackedStringArray("4.6", "GL Compatibility") config/icon="res://icon.svg" +[global_group] + +breakables="" + [input] move_forward={ diff --git a/test/Scripts/Debug/player_debug.gd b/test/Scripts/Debug/player_debug.gd index 4c0bb6c..cd6fa99 100644 --- a/test/Scripts/Debug/player_debug.gd +++ b/test/Scripts/Debug/player_debug.gd @@ -87,6 +87,7 @@ func jump(_delta): if gravity > 0 and is_on_floor(): gravity = 0 +@warning_ignore("unused_parameter") func knockback(impact_point: Vector3, force: Vector3) -> void: force.y = abs(force.y) velocity = force.limit_length(9.0) diff --git a/test/Scripts/armadilha.gd b/test/Scripts/armadilha.gd index 39d8b9f..ffe33e2 100644 --- a/test/Scripts/armadilha.gd +++ b/test/Scripts/armadilha.gd @@ -2,14 +2,10 @@ extends MeshInstance3D @export var damage_trap := 1 var Execute:= false -# Called when the node enters the scene tree for the first time. -func _ready() -> void: - pass # Replace with function body. - -func _on_area_3d_body_entered(body: Node3D) -> void: - while Execute ==false: - body.damage(damage_trap) - Execute = true - await get_tree().create_timer(1.0).timeout - Execute = false +func _on_area_3d_body_entered(body: Node3D) -> void: + while Execute == false: + body.damage(damage_trap) + Execute = true + await get_tree().create_timer(1.0).timeout + Execute = false