mirror of
				https://github.com/DerTyp7/fps-citybuild-unity.git
				synced 2025-10-31 05:07:08 +01:00 
			
		
		
		
	NPC Pathfinding
-Small fixes -NPCs should only look for a path until the next square
This commit is contained in:
		
							
								
								
									
										
											BIN
										
									
								
								Assets/Objects/Axe.fbx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Assets/Objects/Axe.fbx
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										107
									
								
								Assets/Objects/Axe.fbx.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										107
									
								
								Assets/Objects/Axe.fbx.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,107 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: d894059fd3898944ab06ea8914a1db83 | ||||
| ModelImporter: | ||||
|   serializedVersion: 21100 | ||||
|   internalIDToNameTable: [] | ||||
|   externalObjects: | ||||
|   - first: | ||||
|       type: UnityEngine:Material | ||||
|       assembly: UnityEngine.CoreModule | ||||
|       name: Material.002 | ||||
|     second: {fileID: 2100000, guid: e4b6412f9013e924d8e0026398e8b65a, type: 2} | ||||
|   materials: | ||||
|     materialImportMode: 2 | ||||
|     materialName: 0 | ||||
|     materialSearch: 1 | ||||
|     materialLocation: 1 | ||||
|   animations: | ||||
|     legacyGenerateAnimations: 4 | ||||
|     bakeSimulation: 0 | ||||
|     resampleCurves: 1 | ||||
|     optimizeGameObjects: 0 | ||||
|     motionNodeName:  | ||||
|     rigImportErrors:  | ||||
|     rigImportWarnings:  | ||||
|     animationImportErrors:  | ||||
|     animationImportWarnings:  | ||||
|     animationRetargetingWarnings:  | ||||
|     animationDoRetargetingWarnings: 0 | ||||
|     importAnimatedCustomProperties: 0 | ||||
|     importConstraints: 0 | ||||
|     animationCompression: 1 | ||||
|     animationRotationError: 0.5 | ||||
|     animationPositionError: 0.5 | ||||
|     animationScaleError: 0.5 | ||||
|     animationWrapMode: 0 | ||||
|     extraExposedTransformPaths: [] | ||||
|     extraUserProperties: [] | ||||
|     clipAnimations: [] | ||||
|     isReadable: 0 | ||||
|   meshes: | ||||
|     lODScreenPercentages: [] | ||||
|     globalScale: 1 | ||||
|     meshCompression: 0 | ||||
|     addColliders: 0 | ||||
|     useSRGBMaterialColor: 1 | ||||
|     sortHierarchyByName: 1 | ||||
|     importVisibility: 1 | ||||
|     importBlendShapes: 1 | ||||
|     importCameras: 1 | ||||
|     importLights: 1 | ||||
|     fileIdsGeneration: 2 | ||||
|     swapUVChannels: 0 | ||||
|     generateSecondaryUV: 0 | ||||
|     useFileUnits: 1 | ||||
|     keepQuads: 0 | ||||
|     weldVertices: 1 | ||||
|     bakeAxisConversion: 0 | ||||
|     preserveHierarchy: 0 | ||||
|     skinWeightsMode: 0 | ||||
|     maxBonesPerVertex: 4 | ||||
|     minBoneWeight: 0.001 | ||||
|     meshOptimizationFlags: -1 | ||||
|     indexFormat: 0 | ||||
|     secondaryUVAngleDistortion: 8 | ||||
|     secondaryUVAreaDistortion: 15.000001 | ||||
|     secondaryUVHardAngle: 88 | ||||
|     secondaryUVMarginMethod: 1 | ||||
|     secondaryUVMinLightmapResolution: 40 | ||||
|     secondaryUVMinObjectScale: 1 | ||||
|     secondaryUVPackMargin: 4 | ||||
|     useFileScale: 1 | ||||
|   tangentSpace: | ||||
|     normalSmoothAngle: 60 | ||||
|     normalImportMode: 0 | ||||
|     tangentImportMode: 3 | ||||
|     normalCalculationMode: 4 | ||||
|     legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0 | ||||
|     blendShapeNormalImportMode: 1 | ||||
|     normalSmoothingSource: 0 | ||||
|   referencedClips: [] | ||||
|   importAnimation: 1 | ||||
|   humanDescription: | ||||
|     serializedVersion: 3 | ||||
|     human: [] | ||||
|     skeleton: [] | ||||
|     armTwist: 0.5 | ||||
|     foreArmTwist: 0.5 | ||||
|     upperLegTwist: 0.5 | ||||
|     legTwist: 0.5 | ||||
|     armStretch: 0.05 | ||||
|     legStretch: 0.05 | ||||
|     feetSpacing: 0 | ||||
|     globalScale: 1 | ||||
|     rootMotionBoneName:  | ||||
|     hasTranslationDoF: 0 | ||||
|     hasExtraRoot: 0 | ||||
|     skeletonHasParents: 1 | ||||
|   lastHumanDescriptionAvatarSource: {instanceID: 0} | ||||
|   autoGenerateAvatarMappingIfUnspecified: 1 | ||||
|   animationType: 2 | ||||
|   humanoidOversampling: 1 | ||||
|   avatarSetup: 0 | ||||
|   addHumanoidExtraRootOnlyWhenUsingAvatar: 1 | ||||
|   additionalBone: 0 | ||||
|   userData:  | ||||
|   assetBundleName:  | ||||
|   assetBundleVariant:  | ||||
| @@ -420,7 +420,7 @@ Transform: | ||||
|   - {fileID: 763358974} | ||||
|   - {fileID: 1735927146} | ||||
|   m_Father: {fileID: 0} | ||||
|   m_RootOrder: 6 | ||||
|   m_RootOrder: 7 | ||||
|   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} | ||||
| --- !u!1001 &392314070 | ||||
| PrefabInstance: | ||||
| @@ -479,6 +479,75 @@ PrefabInstance: | ||||
|       objectReference: {fileID: 0} | ||||
|     m_RemovedComponents: [] | ||||
|   m_SourcePrefab: {fileID: 100100000, guid: 613866d46c759a848b2a462973745a74, type: 3} | ||||
| --- !u!1001 &665698187 | ||||
| PrefabInstance: | ||||
|   m_ObjectHideFlags: 0 | ||||
|   serializedVersion: 2 | ||||
|   m_Modification: | ||||
|     m_TransformParent: {fileID: 0} | ||||
|     m_Modifications: | ||||
|     - target: {fileID: -8679921383154817045, guid: d894059fd3898944ab06ea8914a1db83, type: 3} | ||||
|       propertyPath: m_RootOrder | ||||
|       value: 1 | ||||
|       objectReference: {fileID: 0} | ||||
|     - target: {fileID: -8679921383154817045, guid: d894059fd3898944ab06ea8914a1db83, type: 3} | ||||
|       propertyPath: m_LocalScale.x | ||||
|       value: 10 | ||||
|       objectReference: {fileID: 0} | ||||
|     - target: {fileID: -8679921383154817045, guid: d894059fd3898944ab06ea8914a1db83, type: 3} | ||||
|       propertyPath: m_LocalScale.y | ||||
|       value: 10 | ||||
|       objectReference: {fileID: 0} | ||||
|     - target: {fileID: -8679921383154817045, guid: d894059fd3898944ab06ea8914a1db83, type: 3} | ||||
|       propertyPath: m_LocalScale.z | ||||
|       value: 10 | ||||
|       objectReference: {fileID: 0} | ||||
|     - target: {fileID: -8679921383154817045, guid: d894059fd3898944ab06ea8914a1db83, type: 3} | ||||
|       propertyPath: m_LocalPosition.x | ||||
|       value: 2.0102873 | ||||
|       objectReference: {fileID: 0} | ||||
|     - target: {fileID: -8679921383154817045, guid: d894059fd3898944ab06ea8914a1db83, type: 3} | ||||
|       propertyPath: m_LocalPosition.y | ||||
|       value: 19.42 | ||||
|       objectReference: {fileID: 0} | ||||
|     - target: {fileID: -8679921383154817045, guid: d894059fd3898944ab06ea8914a1db83, type: 3} | ||||
|       propertyPath: m_LocalPosition.z | ||||
|       value: -6.24 | ||||
|       objectReference: {fileID: 0} | ||||
|     - target: {fileID: -8679921383154817045, guid: d894059fd3898944ab06ea8914a1db83, type: 3} | ||||
|       propertyPath: m_LocalRotation.w | ||||
|       value: 0.7071067 | ||||
|       objectReference: {fileID: 0} | ||||
|     - target: {fileID: -8679921383154817045, guid: d894059fd3898944ab06ea8914a1db83, type: 3} | ||||
|       propertyPath: m_LocalRotation.x | ||||
|       value: -0.7071068 | ||||
|       objectReference: {fileID: 0} | ||||
|     - target: {fileID: -8679921383154817045, guid: d894059fd3898944ab06ea8914a1db83, type: 3} | ||||
|       propertyPath: m_LocalRotation.y | ||||
|       value: 0 | ||||
|       objectReference: {fileID: 0} | ||||
|     - target: {fileID: -8679921383154817045, guid: d894059fd3898944ab06ea8914a1db83, type: 3} | ||||
|       propertyPath: m_LocalRotation.z | ||||
|       value: -0 | ||||
|       objectReference: {fileID: 0} | ||||
|     - target: {fileID: -8679921383154817045, guid: d894059fd3898944ab06ea8914a1db83, type: 3} | ||||
|       propertyPath: m_LocalEulerAnglesHint.x | ||||
|       value: 0 | ||||
|       objectReference: {fileID: 0} | ||||
|     - target: {fileID: -8679921383154817045, guid: d894059fd3898944ab06ea8914a1db83, type: 3} | ||||
|       propertyPath: m_LocalEulerAnglesHint.y | ||||
|       value: 0 | ||||
|       objectReference: {fileID: 0} | ||||
|     - target: {fileID: -8679921383154817045, guid: d894059fd3898944ab06ea8914a1db83, type: 3} | ||||
|       propertyPath: m_LocalEulerAnglesHint.z | ||||
|       value: 0 | ||||
|       objectReference: {fileID: 0} | ||||
|     - target: {fileID: 919132149155446097, guid: d894059fd3898944ab06ea8914a1db83, type: 3} | ||||
|       propertyPath: m_Name | ||||
|       value: Axe | ||||
|       objectReference: {fileID: 0} | ||||
|     m_RemovedComponents: [] | ||||
|   m_SourcePrefab: {fileID: 100100000, guid: d894059fd3898944ab06ea8914a1db83, type: 3} | ||||
| --- !u!1 &705507993 | ||||
| GameObject: | ||||
|   m_ObjectHideFlags: 0 | ||||
| @@ -570,7 +639,7 @@ Transform: | ||||
|   m_LocalScale: {x: 1, y: 1, z: 1} | ||||
|   m_Children: [] | ||||
|   m_Father: {fileID: 0} | ||||
|   m_RootOrder: 3 | ||||
|   m_RootOrder: 4 | ||||
|   m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} | ||||
| --- !u!1 &708126139 | ||||
| GameObject: | ||||
| @@ -668,7 +737,7 @@ RectTransform: | ||||
|   - {fileID: 114639928} | ||||
|   - {fileID: 1395840125} | ||||
|   m_Father: {fileID: 0} | ||||
|   m_RootOrder: 4 | ||||
|   m_RootOrder: 5 | ||||
|   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} | ||||
|   m_AnchorMin: {x: 0, y: 0} | ||||
|   m_AnchorMax: {x: 0, y: 0} | ||||
| @@ -949,7 +1018,7 @@ Transform: | ||||
|   m_LocalScale: {x: 1, y: 1, z: 1} | ||||
|   m_Children: [] | ||||
|   m_Father: {fileID: 0} | ||||
|   m_RootOrder: 2 | ||||
|   m_RootOrder: 3 | ||||
|   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} | ||||
| --- !u!4 &1300620966 stripped | ||||
| Transform: | ||||
| @@ -1191,7 +1260,7 @@ Transform: | ||||
|   m_LocalScale: {x: 1, y: 1, z: 1} | ||||
|   m_Children: [] | ||||
|   m_Father: {fileID: 0} | ||||
|   m_RootOrder: 7 | ||||
|   m_RootOrder: 8 | ||||
|   m_LocalEulerAnglesHint: {x: 90, y: 0, z: 0} | ||||
| --- !u!1 &1417065444 stripped | ||||
| GameObject: | ||||
| @@ -1395,7 +1464,7 @@ Transform: | ||||
|   m_LocalScale: {x: 1, y: 1, z: 1} | ||||
|   m_Children: [] | ||||
|   m_Father: {fileID: 0} | ||||
|   m_RootOrder: 5 | ||||
|   m_RootOrder: 6 | ||||
|   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} | ||||
| --- !u!1 &1861247503 | ||||
| GameObject: | ||||
| @@ -1709,7 +1778,7 @@ PrefabInstance: | ||||
|       objectReference: {fileID: 0} | ||||
|     - target: {fileID: 8390537188327133022, guid: 6a86db7765f277243b912c20f451dc47, type: 3} | ||||
|       propertyPath: m_RootOrder | ||||
|       value: 1 | ||||
|       value: 2 | ||||
|       objectReference: {fileID: 0} | ||||
|     - target: {fileID: 8390537188327133022, guid: 6a86db7765f277243b912c20f451dc47, type: 3} | ||||
|       propertyPath: m_LocalPosition.x | ||||
|   | ||||
							
								
								
									
										
											BIN
										
									
								
								Assets/Textures/Axe_Texture.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Assets/Textures/Axe_Texture.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 504 KiB | 
							
								
								
									
										96
									
								
								Assets/Textures/Axe_Texture.png.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										96
									
								
								Assets/Textures/Axe_Texture.png.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,96 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: 91bcad85a3cb077458c8a2a8623c8a64 | ||||
| TextureImporter: | ||||
|   internalIDToNameTable: [] | ||||
|   externalObjects: {} | ||||
|   serializedVersion: 11 | ||||
|   mipmaps: | ||||
|     mipMapMode: 0 | ||||
|     enableMipMap: 1 | ||||
|     sRGBTexture: 1 | ||||
|     linearTexture: 0 | ||||
|     fadeOut: 0 | ||||
|     borderMipMap: 0 | ||||
|     mipMapsPreserveCoverage: 0 | ||||
|     alphaTestReferenceValue: 0.5 | ||||
|     mipMapFadeDistanceStart: 1 | ||||
|     mipMapFadeDistanceEnd: 3 | ||||
|   bumpmap: | ||||
|     convertToNormalMap: 0 | ||||
|     externalNormalMap: 0 | ||||
|     heightScale: 0.25 | ||||
|     normalMapFilter: 0 | ||||
|   isReadable: 0 | ||||
|   streamingMipmaps: 0 | ||||
|   streamingMipmapsPriority: 0 | ||||
|   vTOnly: 0 | ||||
|   grayScaleToAlpha: 0 | ||||
|   generateCubemap: 6 | ||||
|   cubemapConvolution: 0 | ||||
|   seamlessCubemap: 0 | ||||
|   textureFormat: 1 | ||||
|   maxTextureSize: 2048 | ||||
|   textureSettings: | ||||
|     serializedVersion: 2 | ||||
|     filterMode: 1 | ||||
|     aniso: 1 | ||||
|     mipBias: 0 | ||||
|     wrapU: 0 | ||||
|     wrapV: 0 | ||||
|     wrapW: 0 | ||||
|   nPOTScale: 1 | ||||
|   lightmap: 0 | ||||
|   compressionQuality: 50 | ||||
|   spriteMode: 0 | ||||
|   spriteExtrude: 1 | ||||
|   spriteMeshType: 1 | ||||
|   alignment: 0 | ||||
|   spritePivot: {x: 0.5, y: 0.5} | ||||
|   spritePixelsToUnits: 100 | ||||
|   spriteBorder: {x: 0, y: 0, z: 0, w: 0} | ||||
|   spriteGenerateFallbackPhysicsShape: 1 | ||||
|   alphaUsage: 1 | ||||
|   alphaIsTransparency: 0 | ||||
|   spriteTessellationDetail: -1 | ||||
|   textureType: 0 | ||||
|   textureShape: 1 | ||||
|   singleChannelComponent: 0 | ||||
|   flipbookRows: 1 | ||||
|   flipbookColumns: 1 | ||||
|   maxTextureSizeSet: 0 | ||||
|   compressionQualitySet: 0 | ||||
|   textureFormatSet: 0 | ||||
|   ignorePngGamma: 0 | ||||
|   applyGammaDecoding: 0 | ||||
|   platformSettings: | ||||
|   - serializedVersion: 3 | ||||
|     buildTarget: DefaultTexturePlatform | ||||
|     maxTextureSize: 2048 | ||||
|     resizeAlgorithm: 0 | ||||
|     textureFormat: -1 | ||||
|     textureCompression: 1 | ||||
|     compressionQuality: 50 | ||||
|     crunchedCompression: 0 | ||||
|     allowsAlphaSplitting: 0 | ||||
|     overridden: 0 | ||||
|     androidETC2FallbackOverride: 0 | ||||
|     forceMaximumCompressionQuality_BC6H_BC7: 0 | ||||
|   spriteSheet: | ||||
|     serializedVersion: 2 | ||||
|     sprites: [] | ||||
|     outline: [] | ||||
|     physicsShape: [] | ||||
|     bones: [] | ||||
|     spriteID:  | ||||
|     internalID: 0 | ||||
|     vertices: [] | ||||
|     indices:  | ||||
|     edges: [] | ||||
|     weights: [] | ||||
|     secondaryTextures: [] | ||||
|   spritePackingTag:  | ||||
|   pSDRemoveMatte: 0 | ||||
|   pSDShowRemoveMatteOption: 0 | ||||
|   userData:  | ||||
|   assetBundleName:  | ||||
|   assetBundleVariant:  | ||||
							
								
								
									
										79
									
								
								Assets/Textures/Axt.mat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										79
									
								
								Assets/Textures/Axt.mat
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,79 @@ | ||||
| %YAML 1.1 | ||||
| %TAG !u! tag:unity3d.com,2011: | ||||
| --- !u!21 &2100000 | ||||
| Material: | ||||
|   serializedVersion: 6 | ||||
|   m_ObjectHideFlags: 0 | ||||
|   m_CorrespondingSourceObject: {fileID: 0} | ||||
|   m_PrefabInstance: {fileID: 0} | ||||
|   m_PrefabAsset: {fileID: 0} | ||||
|   m_Name: Axt | ||||
|   m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} | ||||
|   m_ShaderKeywords:  | ||||
|   m_LightmapFlags: 4 | ||||
|   m_EnableInstancingVariants: 0 | ||||
|   m_DoubleSidedGI: 0 | ||||
|   m_CustomRenderQueue: -1 | ||||
|   stringTagMap: {} | ||||
|   disabledShaderPasses: [] | ||||
|   m_SavedProperties: | ||||
|     serializedVersion: 3 | ||||
|     m_TexEnvs: | ||||
|     - _BumpMap: | ||||
|         m_Texture: {fileID: 0} | ||||
|         m_Scale: {x: 1, y: 1} | ||||
|         m_Offset: {x: 0, y: 0} | ||||
|     - _DetailAlbedoMap: | ||||
|         m_Texture: {fileID: 0} | ||||
|         m_Scale: {x: 1, y: 1} | ||||
|         m_Offset: {x: 0, y: 0} | ||||
|     - _DetailMask: | ||||
|         m_Texture: {fileID: 0} | ||||
|         m_Scale: {x: 1, y: 1} | ||||
|         m_Offset: {x: 0, y: 0} | ||||
|     - _DetailNormalMap: | ||||
|         m_Texture: {fileID: 0} | ||||
|         m_Scale: {x: 1, y: 1} | ||||
|         m_Offset: {x: 0, y: 0} | ||||
|     - _EmissionMap: | ||||
|         m_Texture: {fileID: 0} | ||||
|         m_Scale: {x: 1, y: 1} | ||||
|         m_Offset: {x: 0, y: 0} | ||||
|     - _MainTex: | ||||
|         m_Texture: {fileID: 2800000, guid: 91bcad85a3cb077458c8a2a8623c8a64, type: 3} | ||||
|         m_Scale: {x: 1, y: 1} | ||||
|         m_Offset: {x: 0, y: 0} | ||||
|     - _MetallicGlossMap: | ||||
|         m_Texture: {fileID: 0} | ||||
|         m_Scale: {x: 1, y: 1} | ||||
|         m_Offset: {x: 0, y: 0} | ||||
|     - _OcclusionMap: | ||||
|         m_Texture: {fileID: 0} | ||||
|         m_Scale: {x: 1, y: 1} | ||||
|         m_Offset: {x: 0, y: 0} | ||||
|     - _ParallaxMap: | ||||
|         m_Texture: {fileID: 0} | ||||
|         m_Scale: {x: 1, y: 1} | ||||
|         m_Offset: {x: 0, y: 0} | ||||
|     m_Ints: [] | ||||
|     m_Floats: | ||||
|     - _BumpScale: 1 | ||||
|     - _Cutoff: 0.5 | ||||
|     - _DetailNormalMapScale: 1 | ||||
|     - _DstBlend: 0 | ||||
|     - _GlossMapScale: 1 | ||||
|     - _Glossiness: 0.5 | ||||
|     - _GlossyReflections: 1 | ||||
|     - _Metallic: 0 | ||||
|     - _Mode: 0 | ||||
|     - _OcclusionStrength: 1 | ||||
|     - _Parallax: 0.02 | ||||
|     - _SmoothnessTextureChannel: 0 | ||||
|     - _SpecularHighlights: 1 | ||||
|     - _SrcBlend: 1 | ||||
|     - _UVSec: 0 | ||||
|     - _ZWrite: 1 | ||||
|     m_Colors: | ||||
|     - _Color: {r: 1, g: 1, b: 1, a: 1} | ||||
|     - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} | ||||
|   m_BuildTextureStacks: [] | ||||
							
								
								
									
										8
									
								
								Assets/Textures/Axt.mat.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								Assets/Textures/Axt.mat.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: e4b6412f9013e924d8e0026398e8b65a | ||||
| NativeFormatImporter: | ||||
|   externalObjects: {} | ||||
|   mainObjectFileID: 2100000 | ||||
|   userData:  | ||||
|   assetBundleName:  | ||||
|   assetBundleVariant:  | ||||
		Reference in New Issue
	
	Block a user
	 juliuse98
					juliuse98