Files
2D_Game_test/PhysicsObjects/HandStatue/HandStatue.tscn

45 lines
1.5 KiB
Plaintext

[gd_scene load_steps=6 format=3 uid="uid://ca4ghctk5gllj"]
[ext_resource type="Texture2D" uid="uid://cgtkkroa583fo" path="res://TileSets/Stuff.png" id="1_462gd"]
[ext_resource type="Script" path="res://PhysicsObjects/HandStatue/HandStatue.gd" id="1_ap0lt"]
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_ho34d"]
friction = 0.54
rough = true
bounce = 0.76
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_uay4g"]
radius = 9.0
height = 34.0
[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_14ixl"]
properties/0/path = NodePath(".:position")
properties/0/spawn = false
properties/0/sync = false
properties/1/path = NodePath(".:linear_velocity")
properties/1/spawn = false
properties/1/sync = true
[node name="HandStatue" type="RigidBody2D" groups=["moveable"]]
physics_material_override = SubResource("PhysicsMaterial_ho34d")
max_contacts_reported = 3
contact_monitor = true
can_sleep = false
lock_rotation = true
script = ExtResource("1_ap0lt")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, -4)
shape = SubResource("CapsuleShape2D_uay4g")
[node name="Texture2D" type="Sprite2D" parent="."]
position = Vector2(0, -4)
texture = ExtResource("1_462gd")
region_enabled = true
region_rect = Rect2(48, 36, 16, 28)
[node name="MultiplayerSynchronizer" type="MultiplayerSynchronizer" parent="."]
replication_config = SubResource("SceneReplicationConfig_14ixl")
[connection signal="body_entered" from="." to="." method="_on_body_entered"]