From 26fa4514537f7244c581bbb2404318beab46b7b2 Mon Sep 17 00:00:00 2001 From: colourfulspring Date: Tue, 9 Jan 2024 02:13:56 +0800 Subject: [PATCH] 12.25 task4 test1 --- .../Examples/NavMeshTest/NevMeshTest.meta | 8 + .../Examples/NavMeshTest/NevMeshTest.unity | 697 ++++++++++++++++++ .../NavMeshTest/NevMeshTest.unity.meta | 7 + .../NevMeshTest/NavMesh-Floor.asset | Bin 0 -> 7892 bytes .../NevMeshTest/NavMesh-Floor.asset.meta | 8 + .../NevMeshTest/NavMesh-NavMesh.asset | Bin 0 -> 7892 bytes .../NevMeshTest/NavMesh-NavMesh.asset.meta | 8 + .../Examples/NavMeshTest/Scripts.meta | 8 + .../NavMeshTest/Scripts/PlayerController.cs | 14 + .../Scripts/PlayerController.cs.meta | 11 + Project/Packages/manifest.json | 2 +- Project/Packages/packages-lock.json | 2 +- 12 files changed, 763 insertions(+), 2 deletions(-) create mode 100644 Project/Assets/ML-Agents/Examples/NavMeshTest/NevMeshTest.meta create mode 100644 Project/Assets/ML-Agents/Examples/NavMeshTest/NevMeshTest.unity create mode 100644 Project/Assets/ML-Agents/Examples/NavMeshTest/NevMeshTest.unity.meta create mode 100644 Project/Assets/ML-Agents/Examples/NavMeshTest/NevMeshTest/NavMesh-Floor.asset create mode 100644 Project/Assets/ML-Agents/Examples/NavMeshTest/NevMeshTest/NavMesh-Floor.asset.meta create mode 100644 Project/Assets/ML-Agents/Examples/NavMeshTest/NevMeshTest/NavMesh-NavMesh.asset create mode 100644 Project/Assets/ML-Agents/Examples/NavMeshTest/NevMeshTest/NavMesh-NavMesh.asset.meta create mode 100644 Project/Assets/ML-Agents/Examples/NavMeshTest/Scripts.meta create mode 100644 Project/Assets/ML-Agents/Examples/NavMeshTest/Scripts/PlayerController.cs create mode 100644 Project/Assets/ML-Agents/Examples/NavMeshTest/Scripts/PlayerController.cs.meta diff --git a/Project/Assets/ML-Agents/Examples/NavMeshTest/NevMeshTest.meta b/Project/Assets/ML-Agents/Examples/NavMeshTest/NevMeshTest.meta new file mode 100644 index 00000000..597dbec4 --- /dev/null +++ b/Project/Assets/ML-Agents/Examples/NavMeshTest/NevMeshTest.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a2e6de83cbb29cf4a9cbb81461c2008c +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Project/Assets/ML-Agents/Examples/NavMeshTest/NevMeshTest.unity b/Project/Assets/ML-Agents/Examples/NavMeshTest/NevMeshTest.unity new file mode 100644 index 00000000..dc934dab --- /dev/null +++ b/Project/Assets/ML-Agents/Examples/NavMeshTest/NevMeshTest.unity @@ -0,0 +1,697 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +OcclusionCullingSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: 0.25 + backfaceThreshold: 100 + m_SceneGUID: 00000000000000000000000000000000 + m_OcclusionCullingData: {fileID: 0} +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 9 + m_Fog: 0 + m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} + m_FogMode: 3 + m_FogDensity: 0.01 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} + m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} + m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 0 + m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} + m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} + m_HaloStrength: 0.5 + m_FlareStrength: 1 + m_FlareFadeSpeed: 3 + m_HaloTexture: {fileID: 0} + m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} + m_DefaultReflectionMode: 0 + m_DefaultReflectionResolution: 128 + m_ReflectionBounces: 1 + m_ReflectionIntensity: 1 + m_CustomReflection: {fileID: 0} + m_Sun: {fileID: 0} + m_IndirectSpecularColor: {r: 0.44657898, g: 0.4964133, b: 0.5748178, a: 1} + m_UseRadianceAmbientProbe: 0 +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 12 + m_GIWorkflowMode: 1 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 1 + m_EnableRealtimeLightmaps: 0 + m_LightmapEditorSettings: + serializedVersion: 12 + m_Resolution: 2 + m_BakeResolution: 40 + m_AtlasSize: 1024 + m_AO: 0 + m_AOMaxDistance: 1 + m_CompAOExponent: 1 + m_CompAOExponentDirect: 0 + m_ExtractAmbientOcclusion: 0 + m_Padding: 2 + m_LightmapParameters: {fileID: 0} + m_LightmapsBakeMode: 1 + m_TextureCompression: 1 + m_FinalGather: 0 + m_FinalGatherFiltering: 1 + m_FinalGatherRayCount: 256 + m_ReflectionCompression: 2 + m_MixedBakeMode: 2 + m_BakeBackend: 1 + m_PVRSampling: 1 + m_PVRDirectSampleCount: 32 + m_PVRSampleCount: 512 + m_PVRBounces: 2 + m_PVREnvironmentSampleCount: 256 + m_PVREnvironmentReferencePointCount: 2048 + m_PVRFilteringMode: 1 + m_PVRDenoiserTypeDirect: 1 + m_PVRDenoiserTypeIndirect: 1 + m_PVRDenoiserTypeAO: 1 + m_PVRFilterTypeDirect: 0 + m_PVRFilterTypeIndirect: 0 + m_PVRFilterTypeAO: 0 + m_PVREnvironmentMIS: 1 + m_PVRCulling: 1 + m_PVRFilteringGaussRadiusDirect: 1 + m_PVRFilteringGaussRadiusIndirect: 5 + m_PVRFilteringGaussRadiusAO: 2 + m_PVRFilteringAtrousPositionSigmaDirect: 0.5 + m_PVRFilteringAtrousPositionSigmaIndirect: 2 + m_PVRFilteringAtrousPositionSigmaAO: 1 + m_ExportTrainingData: 0 + m_TrainingDataDestination: TrainingData + m_LightProbeSampleCountMultiplier: 4 + m_LightingDataAsset: {fileID: 0} + m_LightingSettings: {fileID: 0} +--- !u!196 &4 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 3 + agentTypeID: 0 + agentRadius: 0.5 + agentHeight: 2 + agentSlope: 45 + agentClimb: 0.4 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + minRegionArea: 2 + manualCellSize: 0 + cellSize: 0.16666667 + manualTileSize: 0 + tileSize: 256 + buildHeightMesh: 0 + maxJobWorkers: 0 + preserveTilesOutsideBounds: 0 + debug: + m_Flags: 0 + m_NavMeshData: {fileID: 0} +--- !u!1 &731827887 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 731827891} + - component: {fileID: 731827890} + - component: {fileID: 731827889} + - component: {fileID: 731827888} + - component: {fileID: 731827892} + - component: {fileID: 731827893} + m_Layer: 0 + m_Name: Player + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!136 &731827888 +CapsuleCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 731827887} + m_Material: {fileID: 0} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_IsTrigger: 0 + m_ProvidesContacts: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Radius: 0.5 + m_Height: 2 + m_Direction: 1 + m_Center: {x: 0, y: 0, z: 0} +--- !u!23 &731827889 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 731827887} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: c9fa44c2c3f8ce74ca39a3355ea42631, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!33 &731827890 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 731827887} + m_Mesh: {fileID: 10208, guid: 0000000000000000e000000000000000, type: 0} +--- !u!4 &731827891 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 731827887} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 1.51, z: -12.66} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 4 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!195 &731827892 +NavMeshAgent: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 731827887} + m_Enabled: 1 + m_AgentTypeID: 0 + m_Radius: 0.5 + m_Speed: 3.5 + m_Acceleration: 8 + avoidancePriority: 50 + m_AngularSpeed: 120 + m_StoppingDistance: 0 + m_AutoTraverseOffMeshLink: 1 + m_AutoBraking: 1 + m_AutoRepath: 1 + m_Height: 2 + m_BaseOffset: 1 + m_WalkableMask: 4294967295 + m_ObstacleAvoidanceType: 4 +--- !u!114 &731827893 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 731827887} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 1ee8f662b5332da428aa4b253df04286, type: 3} + m_Name: + m_EditorClassIdentifier: + agent: {fileID: 731827892} +--- !u!1 &950426098 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 950426101} + - component: {fileID: 950426100} + - component: {fileID: 950426099} + m_Layer: 0 + m_Name: Main Camera + m_TagString: MainCamera + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!81 &950426099 +AudioListener: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 950426098} + m_Enabled: 1 +--- !u!20 &950426100 +Camera: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 950426098} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 1 + m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} + m_projectionMatrixMode: 1 + m_GateFitMode: 2 + m_FOVAxisMode: 0 + m_Iso: 200 + m_ShutterSpeed: 0.005 + m_Aperture: 16 + m_FocusDistance: 10 + m_FocalLength: 50 + m_BladeCount: 5 + m_Curvature: {x: 2, y: 11} + m_BarrelClipping: 0.25 + m_Anamorphism: 0 + m_SensorSize: {x: 36, y: 24} + m_LensShift: {x: 0, y: 0} + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: 0.3 + far clip plane: 1000 + field of view: 60 + orthographic: 0 + orthographic size: 5 + m_Depth: -1 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_RenderingPath: -1 + m_TargetTexture: {fileID: 0} + m_TargetDisplay: 0 + m_TargetEye: 3 + m_HDR: 1 + m_AllowMSAA: 1 + m_AllowDynamicResolution: 0 + m_ForceIntoRT: 0 + m_OcclusionCulling: 1 + m_StereoConvergence: 10 + m_StereoSeparation: 0.022 +--- !u!4 &950426101 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 950426098} + m_LocalRotation: {x: 0.4683737, y: -0, z: -0, w: 0.88353044} + m_LocalPosition: {x: 0, y: 16.18, z: -15.61} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 55.858, y: 0, z: 0} +--- !u!1 &1346075071 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1346075075} + - component: {fileID: 1346075074} + - component: {fileID: 1346075073} + - component: {fileID: 1346075072} + m_Layer: 0 + m_Name: Wall + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!65 &1346075072 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1346075071} + m_Material: {fileID: 0} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_IsTrigger: 0 + m_ProvidesContacts: 0 + m_Enabled: 1 + serializedVersion: 3 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!23 &1346075073 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1346075071} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: 69fefdd39d2b34b169e921910bed9c0d, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!33 &1346075074 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1346075071} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!4 &1346075075 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1346075071} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0.84, z: 0} + m_LocalScale: {x: 10, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 3 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1485331364 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1485331366} + - component: {fileID: 1485331365} + m_Layer: 0 + m_Name: Directional Light + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!108 &1485331365 +Light: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1485331364} + m_Enabled: 1 + serializedVersion: 10 + m_Type: 1 + m_Shape: 0 + m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} + m_Intensity: 1 + m_Range: 10 + m_SpotAngle: 30 + m_InnerSpotAngle: 21.80208 + m_CookieSize: 10 + m_Shadows: + m_Type: 2 + m_Resolution: -1 + m_CustomResolution: -1 + m_Strength: 1 + m_Bias: 0.05 + m_NormalBias: 0.4 + m_NearPlane: 0.2 + m_CullingMatrixOverride: + e00: 1 + e01: 0 + e02: 0 + e03: 0 + e10: 0 + e11: 1 + e12: 0 + e13: 0 + e20: 0 + e21: 0 + e22: 1 + e23: 0 + e30: 0 + e31: 0 + e32: 0 + e33: 1 + m_UseCullingMatrixOverride: 0 + m_Cookie: {fileID: 0} + m_DrawHalo: 0 + m_Flare: {fileID: 0} + m_RenderMode: 0 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_RenderingLayerMask: 1 + m_Lightmapping: 4 + m_LightShadowCasterMode: 0 + m_AreaSize: {x: 1, y: 1} + m_BounceIntensity: 1 + m_ColorTemperature: 6570 + m_UseColorTemperature: 0 + m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0} + m_UseBoundingSphereOverride: 0 + m_UseViewFrustumForShadowCasterCull: 1 + m_ShadowRadius: 0 + m_ShadowAngle: 0 +--- !u!4 &1485331366 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1485331364} + m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} + m_LocalPosition: {x: 0, y: 3, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} +--- !u!1 &2032671421 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2032671425} + - component: {fileID: 2032671424} + - component: {fileID: 2032671423} + - component: {fileID: 2032671422} + - component: {fileID: 2032671426} + m_Layer: 0 + m_Name: Floor + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!65 &2032671422 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2032671421} + m_Material: {fileID: 0} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_IsTrigger: 0 + m_ProvidesContacts: 0 + m_Enabled: 1 + serializedVersion: 3 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!23 &2032671423 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2032671421} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: 5c59bd36def9a4684be49a21cf201a2d, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!33 &2032671424 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2032671421} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!4 &2032671425 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2032671421} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 20, y: 1, z: 30} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &2032671426 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2032671421} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 7a5ac11cc976e418e8d13136b07e1f52, type: 3} + m_Name: + m_EditorClassIdentifier: + m_AgentTypeID: 0 + m_CollectObjects: 0 + m_Size: {x: 10, y: 10, z: 10} + m_Center: {x: 0, y: 2, z: 0} + m_LayerMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_UseGeometry: 0 + m_DefaultArea: 0 + m_GenerateLinks: 0 + m_IgnoreNavMeshAgent: 1 + m_IgnoreNavMeshObstacle: 1 + m_OverrideTileSize: 0 + m_TileSize: 256 + m_OverrideVoxelSize: 0 + m_VoxelSize: 0.16666667 + m_MinRegionArea: 2 + m_NavMeshData: {fileID: 23800000, guid: c2e838bcd05eed14c8594f27e510c9bf, type: 2} + m_BuildHeightMesh: 0 diff --git a/Project/Assets/ML-Agents/Examples/NavMeshTest/NevMeshTest.unity.meta b/Project/Assets/ML-Agents/Examples/NavMeshTest/NevMeshTest.unity.meta new file mode 100644 index 00000000..a268d50c --- /dev/null +++ b/Project/Assets/ML-Agents/Examples/NavMeshTest/NevMeshTest.unity.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 0f6f582983edb6943aaee3e6a1fb720d +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Project/Assets/ML-Agents/Examples/NavMeshTest/NevMeshTest/NavMesh-Floor.asset b/Project/Assets/ML-Agents/Examples/NavMeshTest/NevMeshTest/NavMesh-Floor.asset new file mode 100644 index 0000000000000000000000000000000000000000..240666c1024229cd33667faeff66d1305d0e7ac3 GIT binary patch literal 7892 zcmbuDe~g?(8OLYu_U@ocy_1##<;PM*vD(_bYYUay?q2WewL*LC-ChNX$9uQ$-L2gp z=kB}hwN-ef+5$z<{tywOHi~E~NT`@JfpEn?h_S?wXh<|^;139?#uy`Lf_i?x^JDjY z_q{n1on+>HWs-;5rq8{zv;C#+-;Q2rz49@%zSJy46EV__LiiXmBP+fvWf2oG@#ALU zKNAyv94%DIY!dnVQR$5fpI_<=^Coc~x|g7x<6#oqN2yW_BbGz|$5FiqS=sOvL`nTC z@pZKR7TH$Apke*3lKZs|jr!XnJSGk{3BRoMa}IOO|KiB_@cidRcue$ReW$Q!`uBb0 zKCP&P`Nfj(4>LJ^7)u3tv-IC$=%8;dA(x&qo{{ehE zd=xr0+HXgD$F!le6}I0&UdNJu4t3h6{tuG-^$sx+m-Z*nM1E<6w}jTefINjlre+X~vbwnY)%BFFDTJNTW#La~ezk=^t@$+;en#_aE&N5z6Bhm(&9Ad?-bM5u&w1GY%D=b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~@e{ZeJ z|EqKf2I_;cY-7Gu;vj;ZefWLV4Oc{A7^Q@NHwPwKrir+ZVoPY`Cw5-1j@gyL#UX!F|4?w(ku$=R%0Z;A*FEe48F`*2y`U zG%tOuka+gp+|Ki-e!cGEXMP!so$14`J$AB}ygP(2=OP?C6{BDr%~@bfjZ9uYFGfCf za_Rb^%;WMLQBN>-t$x_|oTG}IS}DD+{9TVtAabDW7xz(UUs5vZ|Bs#8-8@$+cGt>S zs=Ct7*s3~Xx1`3+9l+QrK3nV#9Xa~^BWLD2KR^Has>6#;^KVZkoB@#%Vr4fzlub%e nfIs;^WV0!yXe-vvdsX&*`CKCXr)^W~Up~jU29qDuFTsBS*ktR* literal 0 HcmV?d00001 diff --git a/Project/Assets/ML-Agents/Examples/NavMeshTest/NevMeshTest/NavMesh-Floor.asset.meta b/Project/Assets/ML-Agents/Examples/NavMeshTest/NevMeshTest/NavMesh-Floor.asset.meta new file mode 100644 index 00000000..1f604bdf --- /dev/null +++ b/Project/Assets/ML-Agents/Examples/NavMeshTest/NevMeshTest/NavMesh-Floor.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c2e838bcd05eed14c8594f27e510c9bf +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 23800000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Project/Assets/ML-Agents/Examples/NavMeshTest/NevMeshTest/NavMesh-NavMesh.asset b/Project/Assets/ML-Agents/Examples/NavMeshTest/NevMeshTest/NavMesh-NavMesh.asset new file mode 100644 index 0000000000000000000000000000000000000000..3a6938a94ee65ca25c313bf0a3972c8005f3b232 GIT binary patch literal 7892 zcmbuDe~g?(8OLYu_U@o+xs#Rx<;Pk@vD(_*YYUay+r8f5wL*LC-ChNX$9uQ$-L1Xd zJ@-d@Z53XrwqQ}TKSYG6jUw6#5-KK5AYAbeVk|Kv8WK$!_ya z_q{n1on+>HWB1XDF2oFPMWyO=FEMg)ie%vg) zr(?p4qlGG&O(K6UD!p;x@k@PS-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ErBjCK>?q@BK`2OepZ|=9RNtUSh zV0?q|Ic(v^KMz>A@z2*IT-i7G+czRSZ2v(EH}=12;l}>AB0MHu$NS<0{6oJViE#Dz zk-6WGTDY-)%)*WR;}-ri*ysNEc7$Voh|iPYJU7L}B>m{G_|72SUG7oq!F1u+}gXmomfr`{!7_OTs4EH&e2{E#_>Q?Spb*C1RMo1Z<(+I1L zu*L{$jc|hzZZyI=BP4y*b=}Fj@?>3mvaUV}{d(Trwftmmz^zvE#qo;2ws5mE?iQPYTz2wB;jUVRoJ39`cM3O&dJ^>{>Pgg7sHad*p`Jp$6ZKBiJ5lfK z6jh~1D$iH8m#R+H&0!|~`mpExir#WVZn>Ht1(_Cm#XfZ3RLseGVOX!VFuV~lbjx6J z%U2<6Ddj@Sx`)`pXwZiuk2g+Xc zFaNL7B^am=#tQwFmmUAMI*~MpvvWvS^{izuvXS0uK*~2*4lYM+Sn|05cv6SVL2#*q`CeNP(rYh&ae`v%t zM-zIGs8Y>QR#B+gn-cdYS~_IUCX8>a$FbtLSdUBocJXic!LJWW3#xv#*~Js>&mx@0H?;rwCsuA zg)4vc%He0wKrir+ZVrUY`Cw5-1j@gJ9^&>!F|4?zV8h;=R%03;A*FEe48F`*2y`Uv>> zTUBT5meskr0~kBS=Zf8-BS)Wm_{>7*=jUHrb9l*V{_V+xGa%AJtnS8#vPo$Q@F)L= iY&NA7ZN>TpugJbHol9i?v~9ZUrE`pHFnK}!68sm2FYI^# literal 0 HcmV?d00001 diff --git a/Project/Assets/ML-Agents/Examples/NavMeshTest/NevMeshTest/NavMesh-NavMesh.asset.meta b/Project/Assets/ML-Agents/Examples/NavMeshTest/NevMeshTest/NavMesh-NavMesh.asset.meta new file mode 100644 index 00000000..2b500068 --- /dev/null +++ b/Project/Assets/ML-Agents/Examples/NavMeshTest/NevMeshTest/NavMesh-NavMesh.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: fa9d058f1018e894a8b576e8bac88c63 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 23800000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Project/Assets/ML-Agents/Examples/NavMeshTest/Scripts.meta b/Project/Assets/ML-Agents/Examples/NavMeshTest/Scripts.meta new file mode 100644 index 00000000..b5f2baa8 --- /dev/null +++ b/Project/Assets/ML-Agents/Examples/NavMeshTest/Scripts.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 1d59ce88c2d3f3c448f2e45a275b7b45 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Project/Assets/ML-Agents/Examples/NavMeshTest/Scripts/PlayerController.cs b/Project/Assets/ML-Agents/Examples/NavMeshTest/Scripts/PlayerController.cs new file mode 100644 index 00000000..dcc4b073 --- /dev/null +++ b/Project/Assets/ML-Agents/Examples/NavMeshTest/Scripts/PlayerController.cs @@ -0,0 +1,14 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using UnityEngine.AI; + +public class PlayerController : MonoBehaviour +{ + public NavMeshAgent agent; + // Update is called once per frame + void Update() + { + agent.SetDestination(new Vector3(0, 0, 12.66f)); + } +} diff --git a/Project/Assets/ML-Agents/Examples/NavMeshTest/Scripts/PlayerController.cs.meta b/Project/Assets/ML-Agents/Examples/NavMeshTest/Scripts/PlayerController.cs.meta new file mode 100644 index 00000000..753f1594 --- /dev/null +++ b/Project/Assets/ML-Agents/Examples/NavMeshTest/Scripts/PlayerController.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1ee8f662b5332da428aa4b253df04286 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Project/Packages/manifest.json b/Project/Packages/manifest.json index c0a799ae..de547206 100644 --- a/Project/Packages/manifest.json +++ b/Project/Packages/manifest.json @@ -1,6 +1,6 @@ { "dependencies": { - "com.unity.ai.navigation": "1.1.4", + "com.unity.ai.navigation": "1.1.5", "com.unity.formats.fbx": "4.2.1", "com.unity.ide.rider": "3.0.24", "com.unity.inputsystem": "1.6.1", diff --git a/Project/Packages/packages-lock.json b/Project/Packages/packages-lock.json index 5fe99bed..75a70eaf 100644 --- a/Project/Packages/packages-lock.json +++ b/Project/Packages/packages-lock.json @@ -8,7 +8,7 @@ "url": "https://packages.unity.com" }, "com.unity.ai.navigation": { - "version": "1.1.4", + "version": "1.1.5", "depth": 0, "source": "registry", "dependencies": {