模板场景文件
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
[gd_scene format=3]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://dghg7ospl0imy" path="res://assets/items/weapons/models/axe.fbx" id="1_model"]
|
||||
[ext_resource type="Script" path="res://scripts/items/item_rigid_body_3d.gd" id="2_script"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_item"]
|
||||
size = Vector3(0.31175, 0.78725, 0.08)
|
||||
|
||||
[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_item"]
|
||||
properties/0/path = NodePath(".:position")
|
||||
properties/0/spawn = true
|
||||
properties/0/replication_mode = 2
|
||||
properties/1/path = NodePath(".:rotation")
|
||||
properties/1/spawn = true
|
||||
properties/1/replication_mode = 2
|
||||
|
||||
[node name="Axe" type="RigidBody3D"]
|
||||
collision_layer = 4
|
||||
collision_mask = 7
|
||||
linear_damp = 1.0
|
||||
angular_damp = 1.0
|
||||
script = ExtResource("2_script")
|
||||
item_id = "axe"
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
position = Vector3(0.119475, 0.065875, 0)
|
||||
shape = SubResource("BoxShape3D_item")
|
||||
|
||||
[node name="Model" parent="." instance=ExtResource("1_model")]
|
||||
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 0, 0)
|
||||
|
||||
[node name="MultiplayerSynchronizer" type="MultiplayerSynchronizer" parent="."]
|
||||
replication_config = SubResource("SceneReplicationConfig_item")
|
||||
@@ -0,0 +1,33 @@
|
||||
[gd_scene format=3]
|
||||
|
||||
[ext_resource type="PackedScene" path="res://assets/items/weapons/models/sword.fbx" id="1_model"]
|
||||
[ext_resource type="Script" path="res://scripts/items/item_rigid_body_3d.gd" id="2_script"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_item"]
|
||||
size = Vector3(0.18704, 0.805735, 0.08)
|
||||
|
||||
[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_item"]
|
||||
properties/0/path = NodePath(".:position")
|
||||
properties/0/spawn = true
|
||||
properties/0/replication_mode = 2
|
||||
properties/1/path = NodePath(".:rotation")
|
||||
properties/1/spawn = true
|
||||
properties/1/replication_mode = 2
|
||||
|
||||
[node name="Sword" type="RigidBody3D"]
|
||||
collision_layer = 4
|
||||
collision_mask = 7
|
||||
linear_damp = 1.0
|
||||
angular_damp = 1.0
|
||||
script = ExtResource("2_script")
|
||||
item_id = "sword"
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
position = Vector3(0, 0.268817, 0)
|
||||
shape = SubResource("BoxShape3D_item")
|
||||
|
||||
[node name="Model" parent="." instance=ExtResource("1_model")]
|
||||
transform = Transform3D(0.35, 0, 0, 0, 0.35, 0, 0, 0, 0.35, 0, 0, 0)
|
||||
|
||||
[node name="MultiplayerSynchronizer" type="MultiplayerSynchronizer" parent="."]
|
||||
replication_config = SubResource("SceneReplicationConfig_item")
|
||||
@@ -0,0 +1,33 @@
|
||||
[gd_scene format=3]
|
||||
|
||||
[ext_resource type="PackedScene" path="res://assets/items/weapons/models/sword_big.fbx" id="1_model"]
|
||||
[ext_resource type="Script" path="res://scripts/items/item_rigid_body_3d.gd" id="2_script"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_item"]
|
||||
size = Vector3(0.12996, 0.82038, 0.08)
|
||||
|
||||
[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_item"]
|
||||
properties/0/path = NodePath(".:position")
|
||||
properties/0/spawn = true
|
||||
properties/0/replication_mode = 2
|
||||
properties/1/path = NodePath(".:rotation")
|
||||
properties/1/spawn = true
|
||||
properties/1/replication_mode = 2
|
||||
|
||||
[node name="SwordBig" type="RigidBody3D"]
|
||||
collision_layer = 4
|
||||
collision_mask = 7
|
||||
linear_damp = 1.0
|
||||
angular_damp = 1.0
|
||||
script = ExtResource("2_script")
|
||||
item_id = "sword_big"
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
position = Vector3(0, 0.36504, 0)
|
||||
shape = SubResource("BoxShape3D_item")
|
||||
|
||||
[node name="Model" parent="." instance=ExtResource("1_model")]
|
||||
transform = Transform3D(0.3, 0, 0, 0, 0.3, 0, 0, 0, 0.3, 0, 0, 0)
|
||||
|
||||
[node name="MultiplayerSynchronizer" type="MultiplayerSynchronizer" parent="."]
|
||||
replication_config = SubResource("SceneReplicationConfig_item")
|
||||
Reference in New Issue
Block a user