Fix the aiming and bullet creation
This commit is contained in:
@ -33,16 +33,17 @@ size = Vector3(0.05, 0.05, 0.05)
|
||||
[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_b8q4c"]
|
||||
properties/0/path = NodePath(".:position")
|
||||
properties/0/spawn = true
|
||||
properties/0/replication_mode = 0
|
||||
properties/0/replication_mode = 2
|
||||
properties/1/path = NodePath(".:rotation")
|
||||
properties/1/spawn = true
|
||||
properties/1/replication_mode = 0
|
||||
properties/1/replication_mode = 2
|
||||
|
||||
[node name="Bullet" type="Node3D"]
|
||||
transform = Transform3D(20, 0, 0, 0, 20, 0, 0, 0, 20, 0, 0, 0)
|
||||
script = ExtResource("1_th28m")
|
||||
|
||||
[node name="RigidBody3D" type="RigidBody3D" parent="."]
|
||||
collision_layer = 8
|
||||
collision_mask = 9
|
||||
mass = 0.01
|
||||
continuous_cd = true
|
||||
|
||||
@ -55,6 +56,7 @@ surface_material_override/0 = SubResource("StandardMaterial3D_p8o05")
|
||||
[node name="RayCast3D" type="RayCast3D" parent="RigidBody3D" groups=["body"]]
|
||||
exclude_parent = false
|
||||
target_position = Vector3(0, 0, 2)
|
||||
collision_mask = 9
|
||||
hit_back_faces = false
|
||||
collide_with_areas = true
|
||||
|
||||
|
Reference in New Issue
Block a user