闸机模型及动画

This commit is contained in:
joylink_zhaoerwei 2024-07-16 11:00:51 +08:00
parent e9c4745c47
commit af7c44305b
7 changed files with 418 additions and 3 deletions

Binary file not shown.

View File

@ -0,0 +1,50 @@
[remap]
importer="scene"
importer_version=1
type="PackedScene"
uid="uid://d3m1todq48guy"
path="res://.godot/imported/gate.blend-66b287c5356765be4aafad8f09d14897.scn"
[deps]
source_file="res://Model/trainingLargePassengerFlow/gate.blend"
dest_files=["res://.godot/imported/gate.blend-66b287c5356765be4aafad8f09d14897.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

View File

@ -0,0 +1,23 @@
extends Node3D
var gateDoorALL:Array[GateDoor] = []
##闸机打开
func openGateDoorByIndex(index:int)-> void:
gateDoorALL[index-1].openGateDoor()
##闸机关闭
func closeGateDoorByIndex(index:int)-> void:
gateDoorALL[index-1].closeGateDoor()
func _ready() -> void:
var gateDoor_scene = preload("res://sceen/platform/gate/gateDoor.tscn")
for i in range(1, 6):
var gateDoorInstance = gateDoor_scene.instantiate()
add_child(gateDoorInstance)
gateDoorALL.append(gateDoorInstance)
gateDoorInstance.name = 'gateDoor{0}'.format([i])
gateDoorInstance.position.x= (i-1) *0.9

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,39 @@
extends Node3D
##车门
class_name GateDoor
@onready var left_animation_player: AnimationPlayer = $LeftAnimationPlayer
@onready var right_animation_player: AnimationPlayer = $RightAnimationPlayer
## 车门的状态枚举
enum Gate_Door_STATE{
opening,# 正在开门
open,#开到位
closeing,#正在关门
close,# 关到位
}
##车门的状态
@onready var gateDoorState : Gate_Door_STATE = Gate_Door_STATE.close :
set(value):
if gateDoorState != value:
gateDoorState = value
if gateDoorState == Gate_Door_STATE.open :
left_animation_player.play("leftOpen")
right_animation_player.play("rightOpen")
elif gateDoorState == Gate_Door_STATE.close :
left_animation_player.play("leftClose")
right_animation_player.play("rightClose")
##打开车门
func openGateDoor ()-> void:
if gateDoorState == Gate_Door_STATE.close :
gateDoorState = Gate_Door_STATE.open
##关闭车门
func closeGateDoor ()-> void:
if gateDoorState == Gate_Door_STATE.open :
gateDoorState=Gate_Door_STATE.close

View File

@ -0,0 +1,211 @@
[gd_scene load_steps=16 format=3 uid="uid://c0368j6203bj8"]
[ext_resource type="Script" path="res://sceen/platform/gate/gateDoor.gd" id="1_b8ekv"]
[ext_resource type="Texture2D" uid="uid://dwjh85d7n6c6d" path="res://Model/trainingLargePassengerFlow/textures/DKL_zhaji.jpg" id="1_uqk0r"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_dyqld"]
resource_name = "Material #2137402901.001"
cull_mode = 2
albedo_texture = ExtResource("1_uqk0r")
metallic = 1.0
roughness = 0.858579
[sub_resource type="ArrayMesh" id="ArrayMesh_ntldk"]
_surfaces = [{
"aabb": AABB(-0.0352586, -0.0110748, -0.0321419, 0.294611, 0.587417, 0.0642939),
"format": 34896613377,
"index_count": 54,
"index_data": PackedByteArray(0, 0, 2, 0, 1, 0, 0, 0, 3, 0, 2, 0, 4, 0, 6, 0, 5, 0, 2, 0, 4, 0, 7, 0, 2, 0, 3, 0, 4, 0, 1, 0, 9, 0, 8, 0, 1, 0, 10, 0, 9, 0, 11, 0, 4, 0, 3, 0, 11, 0, 6, 0, 4, 0, 11, 0, 5, 0, 6, 0, 11, 0, 0, 0, 5, 0, 0, 0, 8, 0, 5, 0, 0, 0, 1, 0, 8, 0, 1, 0, 2, 0, 10, 0, 7, 0, 8, 0, 9, 0, 3, 0, 0, 0, 11, 0, 7, 0, 5, 0, 8, 0, 7, 0, 4, 0, 5, 0),
"lods": [0.0211853, PackedByteArray(0, 0, 3, 0, 2, 0, 2, 0, 4, 0, 7, 0, 2, 0, 3, 0, 4, 0, 0, 0, 9, 0, 6, 0, 0, 0, 10, 0, 9, 0, 11, 0, 4, 0, 3, 0, 11, 0, 6, 0, 4, 0, 11, 0, 0, 0, 6, 0, 0, 0, 2, 0, 10, 0, 7, 0, 6, 0, 9, 0, 3, 0, 0, 0, 11, 0, 7, 0, 4, 0, 6, 0)],
"name": "Material #2137402901.001",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 12,
"vertex_data": PackedByteArray(239, 184, 25, 231, 244, 255, 0, 0, 98, 116, 98, 246, 244, 255, 0, 0, 0, 0, 76, 4, 244, 255, 0, 0, 133, 37, 0, 0, 244, 255, 0, 0, 133, 37, 0, 0, 0, 0, 0, 0, 239, 184, 25, 231, 0, 0, 0, 0, 255, 255, 146, 201, 0, 0, 0, 0, 0, 0, 76, 4, 0, 0, 0, 0, 98, 116, 98, 246, 0, 0, 0, 0, 0, 0, 254, 255, 0, 0, 0, 0, 0, 0, 255, 255, 244, 255, 0, 0, 255, 255, 146, 201, 244, 255, 0, 0)
}]
blend_shape_mode = 0
[sub_resource type="ArrayMesh" id="ArrayMesh_rgh8h"]
resource_name = "gate_网格_005"
_surfaces = [{
"aabb": AABB(-0.0352586, -0.0110748, -0.0321419, 0.294611, 0.587417, 0.0642939),
"attribute_data": PackedByteArray(209, 150, 145, 68, 193, 175, 150, 71, 55, 156, 97, 66, 80, 171, 163, 69, 108, 183, 31, 81, 240, 164, 19, 87, 108, 183, 50, 91, 42, 174, 19, 87, 7, 151, 191, 88, 133, 179, 50, 91, 123, 154, 35, 87, 123, 154, 35, 87, 232, 152, 232, 71, 149, 148, 167, 75, 149, 148, 167, 75, 133, 179, 31, 81, 204, 163, 79, 87, 94, 157, 229, 69, 206, 163, 166, 68, 27, 163, 0, 65, 240, 164, 106, 68, 238, 145, 89, 72, 93, 180, 90, 75, 48, 145, 180, 77, 209, 150, 145, 68, 209, 150, 145, 68, 209, 150, 145, 68, 193, 175, 150, 71, 193, 175, 150, 71, 193, 175, 150, 71, 240, 164, 19, 87, 240, 164, 19, 87, 42, 174, 19, 87, 42, 174, 19, 87, 123, 154, 35, 87, 123, 154, 35, 87, 149, 148, 167, 75, 149, 148, 167, 75, 149, 148, 167, 75, 149, 148, 167, 75, 149, 148, 167, 75, 204, 163, 79, 87, 204, 163, 79, 87, 206, 163, 166, 68, 206, 163, 166, 68, 206, 163, 166, 68, 27, 163, 0, 65, 240, 164, 106, 68, 238, 145, 89, 72, 93, 180, 90, 75),
"format": 34896613399,
"index_count": 54,
"index_data": PackedByteArray(1, 0, 5, 0, 3, 0, 1, 0, 7, 0, 5, 0, 10, 0, 13, 0, 12, 0, 4, 0, 9, 0, 15, 0, 4, 0, 6, 0, 9, 0, 2, 0, 18, 0, 17, 0, 2, 0, 19, 0, 18, 0, 23, 0, 11, 0, 8, 0, 23, 0, 14, 0, 11, 0, 21, 0, 12, 0, 13, 0, 21, 0, 0, 0, 12, 0, 0, 0, 17, 0, 12, 0, 0, 0, 2, 0, 17, 0, 3, 0, 5, 0, 20, 0, 16, 0, 17, 0, 18, 0, 7, 0, 1, 0, 22, 0, 16, 0, 12, 0, 17, 0, 16, 0, 10, 0, 12, 0),
"lods": [0.0211853, PackedByteArray(27, 0, 32, 0, 30, 0, 4, 0, 9, 0, 15, 0, 4, 0, 6, 0, 9, 0, 24, 0, 43, 0, 36, 0, 25, 0, 46, 0, 44, 0, 23, 0, 34, 0, 8, 0, 23, 0, 37, 0, 34, 0, 48, 0, 26, 0, 38, 0, 28, 0, 31, 0, 47, 0, 41, 0, 39, 0, 45, 0, 33, 0, 29, 0, 49, 0, 42, 0, 35, 0, 40, 0)],
"material": SubResource("StandardMaterial3D_dyqld"),
"name": "Material #2137402901.001",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 50,
"vertex_data": PackedByteArray(239, 184, 25, 231, 244, 255, 128, 220, 239, 184, 25, 231, 244, 255, 92, 162, 98, 116, 98, 246, 244, 255, 224, 236, 98, 116, 98, 246, 244, 255, 156, 161, 0, 0, 76, 4, 244, 255, 66, 208, 0, 0, 76, 4, 244, 255, 40, 158, 133, 37, 0, 0, 244, 255, 66, 208, 133, 37, 0, 0, 244, 255, 48, 166, 133, 37, 0, 0, 244, 255, 205, 208, 133, 37, 0, 0, 0, 0, 66, 208, 133, 37, 0, 0, 0, 0, 50, 240, 133, 37, 0, 0, 0, 0, 247, 208, 239, 184, 25, 231, 0, 0, 118, 238, 255, 255, 146, 201, 0, 0, 4, 218, 255, 255, 146, 201, 0, 0, 252, 210, 0, 0, 76, 4, 0, 0, 66, 208, 0, 0, 76, 4, 0, 0, 73, 253, 98, 116, 98, 246, 0, 0, 199, 246, 0, 0, 254, 255, 0, 0, 190, 250, 0, 0, 255, 255, 244, 255, 82, 245, 0, 0, 255, 255, 244, 255, 62, 162, 255, 255, 146, 201, 244, 255, 32, 199, 255, 255, 146, 201, 244, 255, 167, 173, 255, 255, 146, 201, 244, 255, 208, 210, 239, 184, 25, 231, 244, 255, 55, 229, 239, 184, 25, 231, 244, 255, 1, 224, 239, 184, 25, 231, 244, 255, 255, 219, 239, 184, 25, 231, 244, 255, 179, 147, 239, 184, 25, 231, 244, 255, 226, 151, 239, 184, 25, 231, 244, 255, 118, 153, 0, 0, 76, 4, 244, 255, 64, 143, 0, 0, 76, 4, 244, 255, 155, 137, 133, 37, 0, 0, 244, 255, 236, 149, 133, 37, 0, 0, 244, 255, 58, 152, 133, 37, 0, 0, 0, 0, 19, 225, 133, 37, 0, 0, 0, 0, 213, 238, 255, 255, 146, 201, 0, 0, 253, 224, 255, 255, 146, 201, 0, 0, 27, 208, 255, 255, 146, 201, 0, 0, 102, 203, 255, 255, 146, 201, 0, 0, 192, 226, 255, 255, 146, 201, 0, 0, 144, 225, 0, 0, 76, 4, 0, 0, 20, 253, 0, 0, 76, 4, 0, 0, 121, 242, 0, 0, 254, 255, 0, 0, 13, 246, 0, 0, 254, 255, 0, 0, 191, 248, 0, 0, 254, 255, 0, 0, 171, 251, 0, 0, 255, 255, 244, 255, 113, 245, 0, 0, 255, 255, 244, 255, 225, 144, 255, 255, 146, 201, 244, 255, 75, 202, 255, 255, 146, 201, 244, 255, 222, 170, 49, 41, 38, 3, 6, 208, 31, 64, 97, 39, 89, 1, 216, 225, 73, 92, 84, 49, 169, 216, 23, 35, 133, 140, 84, 49, 169, 216, 79, 36, 158, 86, 64, 141, 56, 58, 84, 49, 169, 216, 130, 126, 43, 41, 120, 141, 128, 58, 7, 163, 133, 0, 241, 141, 231, 5, 254, 143, 181, 61, 84, 49, 169, 216, 27, 171, 232, 244, 227, 89, 111, 0, 139, 88, 103, 0, 141, 39, 199, 0, 23, 237, 210, 105, 39, 39, 94, 25, 140, 73, 65, 9, 202, 143, 115, 61, 182, 57, 35, 6, 223, 220, 12, 6, 45, 52, 7, 23, 77, 162, 182, 28, 27, 204, 34, 61, 171, 156, 234, 23, 18, 68, 83, 102, 172, 175, 15, 121, 228, 49, 224, 58, 230, 76, 147, 25, 120, 151, 112, 48, 191, 129, 105, 31, 31, 178, 23, 17, 18, 121, 112, 33, 196, 155, 244, 5, 131, 137, 75, 3, 71, 116, 213, 40, 154, 102, 121, 25, 164, 107, 146, 13, 181, 94, 211, 7, 11, 79, 211, 4, 199, 110, 245, 1, 16, 51, 55, 3, 160, 223, 63, 97, 165, 43, 175, 22, 189, 68, 53, 15)
}]
blend_shape_mode = 0
shadow_mesh = SubResource("ArrayMesh_ntldk")
[sub_resource type="ArrayMesh" id="ArrayMesh_v5jav"]
_surfaces = [{
"aabb": AABB(-0.255638, -0.0118828, -0.032142, 0.297573, 0.587417, 0.0642938),
"format": 34896613377,
"index_count": 54,
"index_data": PackedByteArray(0, 0, 2, 0, 1, 0, 0, 0, 3, 0, 2, 0, 4, 0, 6, 0, 5, 0, 2, 0, 4, 0, 1, 0, 2, 0, 7, 0, 4, 0, 3, 0, 9, 0, 8, 0, 3, 0, 10, 0, 9, 0, 11, 0, 4, 0, 5, 0, 11, 0, 1, 0, 4, 0, 11, 0, 6, 0, 0, 0, 11, 0, 5, 0, 6, 0, 0, 0, 10, 0, 3, 0, 0, 0, 6, 0, 10, 0, 3, 0, 8, 0, 2, 0, 7, 0, 9, 0, 10, 0, 1, 0, 11, 0, 0, 0, 7, 0, 6, 0, 4, 0, 7, 0, 10, 0, 6, 0),
"lods": [0.0539512, PackedByteArray(0, 0, 2, 0, 1, 0, 4, 0, 0, 0, 5, 0, 7, 0, 0, 0, 4, 0, 11, 0, 4, 0, 5, 0, 11, 0, 1, 0, 4, 0, 2, 0, 4, 0, 1, 0, 2, 0, 7, 0, 4, 0, 0, 0, 9, 0, 8, 0, 11, 0, 5, 0, 0, 0, 0, 0, 8, 0, 2, 0, 7, 0, 9, 0, 0, 0, 1, 0, 11, 0, 0, 0)],
"name": "Material #2137402901.001",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 12,
"vertex_data": PackedByteArray(90, 70, 25, 231, 244, 255, 0, 0, 182, 218, 0, 0, 244, 255, 0, 0, 255, 255, 122, 7, 244, 255, 0, 0, 56, 138, 98, 246, 244, 255, 0, 0, 182, 218, 0, 0, 0, 0, 0, 0, 0, 0, 145, 201, 0, 0, 0, 0, 90, 70, 25, 231, 0, 0, 0, 0, 254, 255, 122, 7, 0, 0, 0, 0, 255, 255, 255, 255, 244, 255, 0, 0, 254, 255, 254, 255, 0, 0, 0, 0, 56, 138, 98, 246, 0, 0, 0, 0, 0, 0, 146, 201, 244, 255, 0, 0)
}]
blend_shape_mode = 0
[sub_resource type="ArrayMesh" id="ArrayMesh_eyu4m"]
resource_name = "gate_网格_006"
_surfaces = [{
"aabb": AABB(-0.255638, -0.0118828, -0.032142, 0.297573, 0.587417, 0.0642938),
"attribute_data": PackedByteArray(118, 200, 243, 98, 123, 203, 3, 74, 77, 183, 57, 74, 249, 184, 92, 97, 232, 175, 172, 69, 249, 184, 34, 88, 252, 185, 172, 69, 105, 202, 130, 94, 171, 205, 105, 79, 233, 184, 173, 77, 233, 184, 173, 77, 232, 175, 197, 65, 101, 196, 199, 71, 101, 196, 199, 71, 36, 200, 26, 76, 189, 184, 254, 86, 252, 185, 197, 65, 162, 203, 34, 88, 12, 207, 77, 86, 103, 203, 0, 87, 39, 202, 144, 80, 88, 194, 98, 68, 178, 196, 143, 103, 179, 199, 32, 69, 118, 200, 243, 98, 118, 200, 243, 98, 118, 200, 243, 98, 123, 203, 3, 74, 123, 203, 3, 74, 123, 203, 3, 74, 249, 184, 92, 97, 249, 184, 92, 97, 249, 184, 34, 88, 249, 184, 34, 88, 233, 184, 173, 77, 233, 184, 173, 77, 101, 196, 199, 71, 189, 184, 254, 86, 189, 184, 254, 86, 162, 203, 34, 88, 12, 207, 77, 86, 103, 203, 0, 87, 103, 203, 0, 87, 178, 196, 143, 103, 179, 199, 32, 69),
"format": 34896613399,
"index_count": 54,
"index_data": PackedByteArray(0, 0, 5, 0, 3, 0, 0, 0, 7, 0, 5, 0, 10, 0, 14, 0, 13, 0, 6, 0, 11, 0, 4, 0, 6, 0, 16, 0, 11, 0, 8, 0, 19, 0, 18, 0, 8, 0, 20, 0, 19, 0, 21, 0, 9, 0, 12, 0, 21, 0, 2, 0, 9, 0, 23, 0, 14, 0, 1, 0, 23, 0, 13, 0, 14, 0, 1, 0, 20, 0, 8, 0, 1, 0, 14, 0, 20, 0, 7, 0, 17, 0, 5, 0, 15, 0, 19, 0, 20, 0, 3, 0, 22, 0, 0, 0, 15, 0, 14, 0, 10, 0, 15, 0, 20, 0, 14, 0),
"lods": [0.0539512, PackedByteArray(24, 0, 32, 0, 30, 0, 34, 0, 1, 0, 12, 0, 38, 0, 1, 0, 35, 0, 21, 0, 9, 0, 12, 0, 21, 0, 2, 0, 9, 0, 6, 0, 11, 0, 4, 0, 6, 0, 16, 0, 11, 0, 27, 0, 41, 0, 40, 0, 44, 0, 36, 0, 28, 0, 25, 0, 39, 0, 33, 0, 37, 0, 42, 0, 29, 0, 31, 0, 43, 0, 26, 0)],
"material": SubResource("StandardMaterial3D_dyqld"),
"name": "Material #2137402901.001",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 45,
"vertex_data": PackedByteArray(90, 70, 25, 231, 244, 255, 37, 203, 90, 70, 25, 231, 244, 255, 249, 163, 182, 218, 0, 0, 244, 255, 121, 231, 182, 218, 0, 0, 244, 255, 26, 216, 182, 218, 0, 0, 244, 255, 109, 193, 255, 255, 122, 7, 244, 255, 76, 200, 255, 255, 122, 7, 244, 255, 109, 193, 56, 138, 98, 246, 244, 255, 64, 200, 56, 138, 98, 246, 244, 255, 79, 174, 182, 218, 0, 0, 0, 0, 123, 231, 182, 218, 0, 0, 0, 0, 50, 248, 182, 218, 0, 0, 0, 0, 109, 193, 0, 0, 145, 201, 0, 0, 159, 231, 0, 0, 145, 201, 0, 0, 162, 222, 90, 70, 25, 231, 0, 0, 69, 223, 254, 255, 122, 7, 0, 0, 81, 231, 254, 255, 122, 7, 0, 0, 109, 193, 255, 255, 255, 255, 244, 255, 38, 196, 255, 255, 255, 255, 244, 255, 131, 182, 254, 255, 254, 255, 0, 0, 117, 227, 56, 138, 98, 246, 0, 0, 62, 226, 0, 0, 146, 201, 244, 255, 157, 231, 0, 0, 146, 201, 244, 255, 61, 203, 0, 0, 146, 201, 244, 255, 230, 168, 90, 70, 25, 231, 244, 255, 34, 197, 90, 70, 25, 231, 244, 255, 173, 195, 90, 70, 25, 231, 244, 255, 88, 203, 90, 70, 25, 231, 244, 255, 26, 180, 90, 70, 25, 231, 244, 255, 239, 168, 90, 70, 25, 231, 244, 255, 255, 255, 182, 218, 0, 0, 244, 255, 255, 213, 182, 218, 0, 0, 244, 255, 38, 211, 255, 255, 122, 7, 244, 255, 211, 192, 255, 255, 122, 7, 244, 255, 57, 193, 182, 218, 0, 0, 0, 0, 255, 255, 182, 218, 0, 0, 0, 0, 79, 242, 0, 0, 145, 201, 0, 0, 82, 232, 254, 255, 122, 7, 0, 0, 164, 241, 254, 255, 122, 7, 0, 0, 189, 237, 255, 255, 255, 255, 244, 255, 0, 190, 255, 255, 255, 255, 244, 255, 127, 192, 254, 255, 254, 255, 0, 0, 139, 203, 254, 255, 254, 255, 0, 0, 208, 244, 0, 0, 146, 201, 244, 255, 206, 198, 0, 0, 146, 201, 244, 255, 182, 175, 106, 243, 84, 41, 103, 182, 76, 175, 86, 211, 11, 223, 254, 43, 145, 246, 173, 17, 165, 92, 126, 16, 176, 222, 173, 17, 165, 92, 236, 234, 191, 36, 186, 170, 109, 163, 88, 211, 10, 223, 252, 91, 36, 70, 173, 17, 165, 92, 118, 211, 242, 222, 56, 196, 186, 206, 204, 187, 192, 187, 94, 73, 105, 67, 173, 17, 165, 92, 160, 231, 157, 36, 92, 166, 36, 160, 204, 185, 149, 179, 154, 185, 170, 182, 115, 211, 244, 222, 21, 232, 116, 217, 98, 183, 250, 227, 75, 237, 122, 22, 195, 232, 50, 26, 99, 249, 140, 37, 250, 194, 251, 161, 38, 165, 43, 197, 14, 151, 31, 229, 245, 211, 204, 252, 122, 209, 248, 232, 210, 32, 7, 246, 145, 225, 248, 245, 139, 206, 227, 185, 58, 51, 174, 77, 193, 226, 229, 205, 187, 93, 171, 53, 108, 75, 194, 70, 230, 226, 11, 24, 53, 172, 238, 159, 61, 198, 78, 175, 126, 165, 235, 191, 127, 237, 96, 223, 5, 184, 42, 216)
}]
blend_shape_mode = 0
shadow_mesh = SubResource("ArrayMesh_v5jav")
[sub_resource type="Animation" id="Animation_mentd"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("left:rotation")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector3(0, 0, 0)]
}
[sub_resource type="Animation" id="Animation_hyiee"]
resource_name = "leftClose"
length = 0.8
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("left:rotation")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.8),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector3(0, 0, 0.506145), Vector3(0, 0, -0.0872665)]
}
[sub_resource type="Animation" id="Animation_0sy4u"]
resource_name = "leftOpen"
length = 0.8
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("left:rotation")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.8),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector3(0, 0, -0.0872665), Vector3(0, 0, 0.506145)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_np6d8"]
_data = {
"RESET": SubResource("Animation_mentd"),
"leftClose": SubResource("Animation_hyiee"),
"leftOpen": SubResource("Animation_0sy4u")
}
[sub_resource type="Animation" id="Animation_vhhge"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("right:rotation")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector3(0, 0, 0)]
}
[sub_resource type="Animation" id="Animation_60d8m"]
resource_name = "rightClose"
length = 0.8
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("right:rotation")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.8),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector3(0, 0, -0.506145), Vector3(0, 0, 0.0872665)]
}
[sub_resource type="Animation" id="Animation_oxrhd"]
resource_name = "rightOpen"
length = 0.8
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("right:rotation")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.8),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector3(0, 0, 0.0872665), Vector3(0, 0, -0.506145)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_ppdod"]
_data = {
"RESET": SubResource("Animation_vhhge"),
"rightClose": SubResource("Animation_60d8m"),
"rightOpen": SubResource("Animation_oxrhd")
}
[node name="GateDoor" type="Node3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.4, 0)
script = ExtResource("1_b8ekv")
[node name="left" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.3, 0, 0)
mesh = SubResource("ArrayMesh_rgh8h")
skeleton = NodePath("")
[node name="right" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.3, 0, 0)
mesh = SubResource("ArrayMesh_eyu4m")
skeleton = NodePath("")
[node name="LeftAnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_np6d8")
}
[node name="RightAnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_ppdod")
}

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=18 format=3 uid="uid://dmlksr5k23wwk"]
[gd_scene load_steps=19 format=3 uid="uid://dmlksr5k23wwk"]
[ext_resource type="Script" path="res://sceen/totalOfLargePassengerFlow.gd" id="1_5iiv2"]
[ext_resource type="PackedScene" uid="uid://cmnsn2joxo68l" path="res://sceen/platform/platform.tscn" id="1_rjva4"]
@ -8,6 +8,7 @@
[ext_resource type="Script" path="res://sceen/Area3D/APassageAreaDetection.gd" id="7_sgvbf"]
[ext_resource type="Script" path="res://sceen/Area3D/TicketingAreaDetection.gd" id="8_3kqgp"]
[ext_resource type="Script" path="res://sceen/Area3D/TicketingLfetAreaDetection.gd" id="8_52vqq"]
[ext_resource type="PackedScene" uid="uid://dl80ivae7k7lq" path="res://sceen/platform/gate/gate.tscn" id="10_bhdac"]
[ext_resource type="PackedScene" uid="uid://nx6xnwcuq8cf" path="res://sceen/train/train.tscn" id="14_g0uwl"]
[sub_resource type="NavigationMesh" id="NavigationMesh_udupl"]
@ -92,7 +93,6 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 60, 0, 0)
[node name="Camera3D" type="Camera3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.424, 1.768, 6.555)
visible = false
current = true
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_ux83q")
@ -229,7 +229,7 @@ transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 101.25
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 57.631, 7, 18.955)
[node name="AExitGate" type="Camera3D" parent="AllCamera"]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 77.41, 7, 2.025)
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 80.585, 7, 2.025)
[node name="AUpperStep" type="Camera3D" parent="AllCamera"]
transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 57.941, 7, 9.93)
@ -299,6 +299,20 @@ script = ExtResource("8_3kqgp")
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.102997)
shape = SubResource("BoxShape3D_kqt6b")
[node name="AllGates" type="Node3D" parent="."]
[node name="BInboundGate" parent="AllGates" instance=ExtResource("10_bhdac")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 35.143, 5.723, 13.511)
[node name="BExitGate" parent="AllGates" instance=ExtResource("10_bhdac")]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 17.5418, 5.723, 3.80904)
[node name="AInboundGate" parent="AllGates" instance=ExtResource("10_bhdac")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 52.7253, 5.723, 13.511)
[node name="AExitGate" parent="AllGates" instance=ExtResource("10_bhdac")]
transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 74.1319, 5.723, 0.0381855)
[connection signal="allClickPlatformSignal" from="platform" to="." method="_on_platform_all_click_platform_signal"]
[connection signal="allScreenDoorLcbStateSignal" from="platform" to="." method="emitScreenDoorLcbStateChangeSignal"]
[connection signal="animation_finished" from="trainAnimationPlayer" to="train" method="_on_train_animation_player_animation_finished"]