Browse Source

车的寻路修改

develop
杨栋梁 3 years ago
parent
commit
ab15455ba6
  1. 371
      Assets/21XunBaoJiaYouZhan/Scenes/BuildingScene.unity
  2. BIN
      Assets/21XunBaoJiaYouZhan/Scenes/BuildingScene/NavMesh-NavmeshSurfaceCar.asset
  3. BIN
      Assets/21XunBaoJiaYouZhan/Scenes/BuildingScene/NavMesh-NavmeshSurfaceSoldier.asset
  4. 38
      Assets/21XunBaoJiaYouZhan/XunBaoJiaYouZhan.prefab

371
Assets/21XunBaoJiaYouZhan/Scenes/BuildingScene.unity

@ -203,6 +203,261 @@ MeshFilter:
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 46907816} m_GameObject: {fileID: 46907816}
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
--- !u!1 &339290549
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 339290550}
- component: {fileID: 339290551}
m_Layer: 0
m_Name: NavMesh Link (1)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &339290550
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 339290549}
m_LocalRotation: {x: 0, y: 0.7071068, z: 0, w: 0.7071068}
m_LocalPosition: {x: 25.87, y: -0.05, z: 27.12}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 1729652051}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 90, z: 0}
--- !u!114 &339290551
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 339290549}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 6eeb5dc026fdf4b488bc7ae0138ab719, type: 3}
m_Name:
m_EditorClassIdentifier:
m_AgentTypeID: -1372625422
m_StartPoint: {x: 0.00000075571256, y: 0, z: -1.2393713}
m_EndPoint: {x: 0.0000004861882, y: 0, z: 1.0215633}
m_Width: 0
m_CostModifier: -1
m_Bidirectional: 1
m_AutoUpdatePosition: 0
m_Area: 0
--- !u!1 &503464475
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 503464476}
- component: {fileID: 503464477}
m_Layer: 0
m_Name: NavMesh Link (5)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &503464476
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 503464475}
m_LocalRotation: {x: 0, y: 0.7071068, z: 0, w: 0.7071068}
m_LocalPosition: {x: 25.87, y: -0.05, z: 12.73}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 1729652051}
m_RootOrder: 5
m_LocalEulerAnglesHint: {x: 0, y: 90, z: 0}
--- !u!114 &503464477
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 503464475}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 6eeb5dc026fdf4b488bc7ae0138ab719, type: 3}
m_Name:
m_EditorClassIdentifier:
m_AgentTypeID: -1372625422
m_StartPoint: {x: 0.00000075571256, y: 0, z: -1.2393713}
m_EndPoint: {x: 0.0000004861882, y: 0, z: 1.0215633}
m_Width: 0
m_CostModifier: -1
m_Bidirectional: 1
m_AutoUpdatePosition: 0
m_Area: 0
--- !u!1 &723088412
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 723088413}
- component: {fileID: 723088414}
m_Layer: 0
m_Name: NavMesh Link (3)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &723088413
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 723088412}
m_LocalRotation: {x: 0, y: 0.7071068, z: 0, w: 0.7071068}
m_LocalPosition: {x: 25.87, y: -0.05, z: 19.93}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 1729652051}
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 90, z: 0}
--- !u!114 &723088414
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 723088412}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 6eeb5dc026fdf4b488bc7ae0138ab719, type: 3}
m_Name:
m_EditorClassIdentifier:
m_AgentTypeID: -1372625422
m_StartPoint: {x: 0.00000075571256, y: 0, z: -1.2393713}
m_EndPoint: {x: 0.0000004861882, y: 0, z: 1.0215633}
m_Width: 0
m_CostModifier: -1
m_Bidirectional: 1
m_AutoUpdatePosition: 0
m_Area: 0
--- !u!1 &803247220
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 803247221}
- component: {fileID: 803247222}
m_Layer: 0
m_Name: NavMesh Link (4)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &803247221
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 803247220}
m_LocalRotation: {x: 0, y: 0.7071068, z: 0, w: 0.7071068}
m_LocalPosition: {x: 25.87, y: -0.05, z: 16.55}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 1729652051}
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 90, z: 0}
--- !u!114 &803247222
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 803247220}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 6eeb5dc026fdf4b488bc7ae0138ab719, type: 3}
m_Name:
m_EditorClassIdentifier:
m_AgentTypeID: -1372625422
m_StartPoint: {x: 0.00000075571256, y: 0, z: -1.2393713}
m_EndPoint: {x: 0.0000004861882, y: 0, z: 1.0215633}
m_Width: 0
m_CostModifier: -1
m_Bidirectional: 1
m_AutoUpdatePosition: 0
m_Area: 0
--- !u!1 &1002305919
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1002305920}
- component: {fileID: 1002305921}
m_Layer: 0
m_Name: NavMesh Link (6)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1002305920
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1002305919}
m_LocalRotation: {x: 0, y: 0.7071068, z: 0, w: 0.7071068}
m_LocalPosition: {x: 25.87, y: -0.05, z: 9.16}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 1729652051}
m_RootOrder: 6
m_LocalEulerAnglesHint: {x: 0, y: 90, z: 0}
--- !u!114 &1002305921
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1002305919}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 6eeb5dc026fdf4b488bc7ae0138ab719, type: 3}
m_Name:
m_EditorClassIdentifier:
m_AgentTypeID: -1372625422
m_StartPoint: {x: 0.00000075571256, y: 0, z: -1.2393713}
m_EndPoint: {x: 0.0000004861882, y: 0, z: 1.0215633}
m_Width: 0
m_CostModifier: -1
m_Bidirectional: 1
m_AutoUpdatePosition: 0
m_Area: 0
--- !u!1 &1011849002 --- !u!1 &1011849002
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -370,7 +625,14 @@ Transform:
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: [] m_Children:
- {fileID: 2084835195}
- {fileID: 339290550}
- {fileID: 1815892956}
- {fileID: 723088413}
- {fileID: 803247221}
- {fileID: 503464476}
- {fileID: 1002305920}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 2 m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@ -507,6 +769,108 @@ MeshFilter:
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1776738051} m_GameObject: {fileID: 1776738051}
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
--- !u!1 &1815892955
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1815892956}
- component: {fileID: 1815892957}
m_Layer: 0
m_Name: NavMesh Link (2)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1815892956
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1815892955}
m_LocalRotation: {x: 0, y: 0.7071068, z: 0, w: 0.7071068}
m_LocalPosition: {x: 25.87, y: -0.05, z: 23.4}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 1729652051}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 90, z: 0}
--- !u!114 &1815892957
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1815892955}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 6eeb5dc026fdf4b488bc7ae0138ab719, type: 3}
m_Name:
m_EditorClassIdentifier:
m_AgentTypeID: -1372625422
m_StartPoint: {x: 0.00000075571256, y: 0, z: -1.2393713}
m_EndPoint: {x: 0.0000004861882, y: 0, z: 1.0215633}
m_Width: 0
m_CostModifier: -1
m_Bidirectional: 1
m_AutoUpdatePosition: 0
m_Area: 0
--- !u!1 &2084835194
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2084835195}
- component: {fileID: 2084835196}
m_Layer: 0
m_Name: NavMesh Link
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &2084835195
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2084835194}
m_LocalRotation: {x: 0, y: 0.7071068, z: 0, w: 0.7071068}
m_LocalPosition: {x: 25.87, y: -0.05, z: 30.97}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 1729652051}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 90, z: 0}
--- !u!114 &2084835196
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2084835194}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 6eeb5dc026fdf4b488bc7ae0138ab719, type: 3}
m_Name:
m_EditorClassIdentifier:
m_AgentTypeID: -1372625422
m_StartPoint: {x: 0.00000075571256, y: 0, z: -1.2393713}
m_EndPoint: {x: 0.0000004861882, y: 0, z: 1.0215633}
m_Width: 0
m_CostModifier: -1
m_Bidirectional: 1
m_AutoUpdatePosition: 0
m_Area: 0
--- !u!1001 &5207771737515251780 --- !u!1001 &5207771737515251780
PrefabInstance: PrefabInstance:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -519,11 +883,6 @@ PrefabInstance:
propertyPath: m_Name propertyPath: m_Name
value: XunBaoJiaYouZhan value: XunBaoJiaYouZhan
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 7228922371002760870, guid: 68a2e357dc898db41a3b62135ad56449,
type: 3}
propertyPath: m_Name
value: GuanQu
objectReference: {fileID: 0}
- target: {fileID: 7946118961112141262, guid: 68a2e357dc898db41a3b62135ad56449, - target: {fileID: 7946118961112141262, guid: 68a2e357dc898db41a3b62135ad56449,
type: 3} type: 3}
propertyPath: m_LocalPosition.x propertyPath: m_LocalPosition.x

BIN
Assets/21XunBaoJiaYouZhan/Scenes/BuildingScene/NavMesh-NavmeshSurfaceCar.asset

Binary file not shown.

BIN
Assets/21XunBaoJiaYouZhan/Scenes/BuildingScene/NavMesh-NavmeshSurfaceSoldier.asset

Binary file not shown.

38
Assets/21XunBaoJiaYouZhan/XunBaoJiaYouZhan.prefab

@ -6788,7 +6788,8 @@ GameObject:
- component: {fileID: 2465227651557558316} - component: {fileID: 2465227651557558316}
- component: {fileID: 1187479881612183078} - component: {fileID: 1187479881612183078}
- component: {fileID: 4230236472174670010} - component: {fileID: 4230236472174670010}
m_Layer: 16 - component: {fileID: 5207771737515251782}
m_Layer: 15
m_Name: luya m_Name: luya
m_TagString: Untagged m_TagString: Untagged
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
@ -6907,6 +6908,22 @@ MonoBehaviour:
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
cloneOnFloorType: 2 cloneOnFloorType: 2
--- !u!114 &5207771737515251782
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7228922371002760860}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 1e3fdca004f2d45fe8abbed571a8abd5, type: 3}
m_Name:
m_EditorClassIdentifier:
m_OverrideArea: 1
m_Area: 1
m_IgnoreFromBuild: 0
m_AffectedAgents: f2652fae
--- !u!1 &7228922371002760862 --- !u!1 &7228922371002760862
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -8556,8 +8573,7 @@ GameObject:
- component: {fileID: 7228922370999558842} - component: {fileID: 7228922370999558842}
- component: {fileID: 7228922371000557818} - component: {fileID: 7228922371000557818}
- component: {fileID: 3269940005053891623} - component: {fileID: 3269940005053891623}
- component: {fileID: 4579069228524843411} m_Layer: 0
m_Layer: 15
m_Name: CJ_wall2 m_Name: CJ_wall2
m_TagString: Untagged m_TagString: Untagged
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
@ -8637,22 +8653,6 @@ MeshCollider:
m_Convex: 0 m_Convex: 0
m_CookingOptions: 14 m_CookingOptions: 14
m_Mesh: {fileID: 4300034, guid: ee7eb103c0abaf14d99b271cac589b54, type: 3} m_Mesh: {fileID: 4300034, guid: ee7eb103c0abaf14d99b271cac589b54, type: 3}
--- !u!114 &4579069228524843411
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7228922371002760894}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 1e3fdca004f2d45fe8abbed571a8abd5, type: 3}
m_Name:
m_EditorClassIdentifier:
m_OverrideArea: 1
m_Area: 1
m_IgnoreFromBuild: 0
m_AffectedAgents: ffffffff
--- !u!1 &7228922371002760896 --- !u!1 &7228922371002760896
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0

Loading…
Cancel
Save