屏蔽门增加被夹的人,待完善

This commit is contained in:
joylink_zhaoerwei 2024-05-10 11:34:01 +08:00
parent cee3ac2217
commit 15c953822a
10 changed files with 168 additions and 2 deletions

Binary file not shown.

View File

@ -0,0 +1,50 @@
[remap]
importer="scene"
importer_version=1
type="PackedScene"
uid="uid://yvkjjjm5lmeo"
path="res://.godot/imported/ScreenDoorPinchPeople.blend-ea899a629942c20b6250a41a3204700a.scn"
[deps]
source_file="res://Model/ScreenDoorPinchPeople.blend"
dest_files=["res://.godot/imported/ScreenDoorPinchPeople.blend-ea899a629942c20b6250a41a3204700a.scn"]
[params]
nodes/root_type=""
nodes/root_name=""
nodes/apply_root_scale=true
nodes/root_scale=1.0
meshes/ensure_tangents=true
meshes/generate_lods=true
meshes/create_shadow_meshes=true
meshes/light_baking=1
meshes/lightmap_texel_size=0.2
meshes/force_disable_compression=false
skins/use_named_skins=true
animation/import=true
animation/fps=30
animation/trimming=false
animation/remove_immutable_tracks=true
import_script/path=""
_subresources={}
gltf/naming_version=1
gltf/embedded_image_handling=1
blender/nodes/visible=0
blender/nodes/punctual_lights=true
blender/nodes/cameras=true
blender/nodes/custom_properties=true
blender/nodes/modifiers=1
blender/meshes/colors=false
blender/meshes/uvs=true
blender/meshes/normals=true
blender/meshes/tangents=true
blender/meshes/skins=2
blender/meshes/export_bones_deforming_mesh_only=false
blender/materials/unpack_enabled=true
blender/materials/export_materials=1
blender/animation/limit_playback=true
blender/animation/always_sample=true
blender/animation/group_tracks=true

BIN
Model/textures/DKL_SB_J.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

View File

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cl3b8po7ergpj"
path.s3tc="res://.godot/imported/DKL_SB_J.jpg-a67e8fc4961d0a5bf7abe9176539960a.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://Model/textures/DKL_SB_J.jpg"
dest_files=["res://.godot/imported/DKL_SB_J.jpg-a67e8fc4961d0a5bf7abe9176539960a.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

BIN
Model/textures/n_bigys.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

View File

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bk85qpmdycjdr"
path.s3tc="res://.godot/imported/n_bigys.jpg-86d4b8ca1b03601f721fe9e2a52fa74b.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://Model/textures/n_bigys.jpg"
dest_files=["res://.godot/imported/n_bigys.jpg-86d4b8ca1b03601f721fe9e2a52fa74b.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

View File

@ -0,0 +1,6 @@
extends PathFollow3D
func _process(delta):
progress += 0.02

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=48 format=3 uid="uid://bc2dnsyx16kk6"]
[gd_scene load_steps=51 format=3 uid="uid://bc2dnsyx16kk6"]
[ext_resource type="Script" path="res://sceen/platform/screenDoor.gd" id="1_nse1y"]
[ext_resource type="Shader" path="res://shaders/mtd.gdshader" id="2_04fd1"]
@ -14,6 +14,8 @@
[ext_resource type="Texture2D" uid="uid://eogu2aigjbda" path="res://Model/textures/Gd_ZTM.jpg" id="8_aqfjl"]
[ext_resource type="Texture2D" uid="uid://co0ggcy26r38g" path="res://Model/textures/2cengtietu_zst.png" id="9_da8bg"]
[ext_resource type="AudioStream" uid="uid://k0e2shfdjyrq" path="res://Assets/music/glass-breaking.mp3" id="9_kpf37"]
[ext_resource type="PackedScene" uid="uid://yvkjjjm5lmeo" path="res://Model/ScreenDoorPinchPeople.blend" id="15_wm4hy"]
[ext_resource type="Script" path="res://sceen/platform/PinchPeoplePathFollow3D.gd" id="16_ml4r8"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_4f4ck"]
render_priority = 0
@ -470,6 +472,13 @@ _surfaces = [{
blend_shape_mode = 0
shadow_mesh = SubResource("ArrayMesh_xyf5j")
[sub_resource type="Curve3D" id="Curve3D_1img4"]
_data = {
"points": PackedVector3Array(0, 0, 0, 0, 0, 0, -4.99416, 0, 0.842674, 0, 0, 0, 0, 0, 0, -5.9496, 0, 0.830306, 0, 0, 0, 0, 0, 0, -6.39486, 0, 0.978725, 0, 0, 0, 0, 0, 0, -6.54637, 0, 1.21372, 0, 0, 0, 0, 0, 0, -6.471, 0, 1.849),
"tilts": PackedFloat32Array(0, 0, 0, 0, 0)
}
point_count = 5
[node name="screenDoor" type="Node3D"]
script = ExtResource("1_nse1y")
mtd_material = SubResource("ShaderMaterial_4f4ck")
@ -559,6 +568,24 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -6.5433, 0.870711, 2.58114)
mesh = SubResource("ArrayMesh_1trd0")
skeleton = NodePath("")
[node name="PinchPeople" type="Node3D" parent="."]
visible = false
[node name="ScreenDoorPinchPeople" parent="PinchPeople" instance=ExtResource("15_wm4hy")]
transform = Transform3D(-0.198254, 0, 0.980141, 0, 1, 0, -0.980141, 0, -0.198254, -6.471, 0, 1.849)
[node name="Path3D" type="Path3D" parent="PinchPeople"]
curve = SubResource("Curve3D_1img4")
[node name="PathFollow3D" type="PathFollow3D" parent="PinchPeople/Path3D"]
transform = Transform3D(-0.993026, 0, -0.117817, 0, 1, 0, 0.117817, 0, -0.993026, -6.471, 0, 1.849)
progress = 2.34421
script = ExtResource("16_ml4r8")
[node name="RemoteTransform3D" type="RemoteTransform3D" parent="PinchPeople/Path3D/PathFollow3D"]
remote_path = NodePath("../../../ScreenDoorPinchPeople")
update_rotation = false
[connection signal="clickLcbSignal" from="LCB" to="." method="_on_lcb_click"]
[connection signal="animation_finished" from="LeftAnimationPlayer" to="." method="_on_left_animation_player_animation_finished"]
[connection signal="input_event" from="screenDoorArea3D" to="screenDoorArea3D" method="_on_input_event"]

View File

@ -2,7 +2,7 @@ extends Node3D
class_name TotalScene
##车来开屏蔽门和车门
##车来开屏蔽门和车门
func trainComeAndOpenScreenDoor ()-> void:
$train.trainCome()
$BeginTimer.start()
@ -11,6 +11,14 @@ func _on_beginTimer_timeout() -> void:
$train.openLeftTrainDoorALL()
$platform.openScreenDoorALL()
##关屏蔽门和车门且车走
func closeScreenDoorAndTrainLeave ()-> void:
closeScreenDoor()
$EndTimer.start()
func _on_end_timer_timeout() -> void:
trainLeave()
##关屏蔽门和车门
func closeScreenDoor() -> void:
$train.closeLeftTrainDoorALL()

View File

@ -88,5 +88,10 @@ libraries = {
wait_time = 3.0
one_shot = true
[node name="EndTimer" type="Timer" parent="."]
wait_time = 3.0
one_shot = true
[connection signal="animation_finished" from="trainAnimationPlayer" to="train" method="_on_train_animation_player_animation_finished"]
[connection signal="timeout" from="BeginTimer" to="." method="_on_beginTimer_timeout"]
[connection signal="timeout" from="EndTimer" to="." method="_on_end_timer_timeout"]