pieces can rotate while moving
whe can color pieces dynamically pieces have collider and can kill each other
This commit is contained in:
parent
3ea7bfd5dc
commit
026d634c3a
18 changed files with 283 additions and 263 deletions
|
|
@ -2,5 +2,27 @@
|
|||
|
||||
[ext_resource type="Script" uid="uid://c11aaiot3b336" path="res://Scene/Pieces/piece.gd" id="1_y1oan"]
|
||||
|
||||
[node name="Piece" type="Node3D" unique_id=410020425]
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_y1oan"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_y1oan"]
|
||||
size = Vector3(1, 1, 0.23034668)
|
||||
|
||||
[node name="Piece" type="CharacterBody3D" unique_id=537334881]
|
||||
input_ray_pickable = false
|
||||
script = ExtResource("1_y1oan")
|
||||
team = null
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="." unique_id=1993537939]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
||||
shape = SubResource("CapsuleShape3D_y1oan")
|
||||
|
||||
[node name="AttackArea3D" type="Area3D" parent="." unique_id=1127558984]
|
||||
collision_layer = 0
|
||||
input_ray_pickable = false
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="AttackArea3D" unique_id=2114634494]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.2023885, -0.5136469)
|
||||
shape = SubResource("BoxShape3D_y1oan")
|
||||
debug_color = Color(0.8610924, 0.33499888, 0.36550382, 0.41960785)
|
||||
|
||||
[connection signal="body_entered" from="AttackArea3D" to="." method="_on_attack_area_3d_body_entered"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue