diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4e86a17 --- /dev/null +++ b/.gitignore @@ -0,0 +1,36 @@ +# =============== # +# Unity generated # +# =============== # +Temp/ +Library/ + +# ===================================== # +# Visual Studio / MonoDevelop generated # +# ===================================== # +ExportedObj/ +obj/ +*.svd +*.userprefs +/*.csproj +*.pidb +*.suo +/*.sln +*.user +*.unityproj +*.booproj + +# ============ # +# OS generated # +# ============ # +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes +ehthumbs.db +Thumbs.db + +# ============== # +# My Own Ignores # +# ============== # +/Build/ \ No newline at end of file diff --git a/Assets/Examples.meta b/Assets/Examples.meta new file mode 100644 index 0000000..5c5b69e --- /dev/null +++ b/Assets/Examples.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 475b7bd53297fab449aae3a8a551bedb +folderAsset: yes +timeCreated: 1445679897 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Examples/Arrive.unity b/Assets/Examples/Arrive.unity new file mode 100644 index 0000000..e06c65e --- /dev/null +++ b/Assets/Examples/Arrive.unity @@ -0,0 +1,275 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +SceneSettings: + m_ObjectHideFlags: 0 + m_PVSData: + m_PVSObjectsArray: [] + m_PVSPortalsArray: [] + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: .25 + backfaceThreshold: 100 +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 6 + m_Fog: 0 + m_FogColor: {r: .5, g: .5, b: .5, a: 1} + m_FogMode: 3 + m_FogDensity: .00999999978 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: .211999997, g: .226999998, b: .259000003, a: 1} + m_AmbientEquatorColor: {r: .114, g: .125, b: .133000001, a: 1} + m_AmbientGroundColor: {r: .0469999984, g: .0430000015, b: .0350000001, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 0 + m_SkyboxMaterial: {fileID: 0} + m_HaloStrength: .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} +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 5 + m_GIWorkflowMode: 0 + m_LightmapsMode: 1 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_TemporalCoherenceThreshold: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 1 + m_EnableRealtimeLightmaps: 1 + m_LightmapEditorSettings: + serializedVersion: 3 + m_Resolution: 2 + m_BakeResolution: 40 + m_TextureWidth: 1024 + m_TextureHeight: 1024 + m_AOMaxDistance: 1 + m_Padding: 2 + m_CompAOExponent: 0 + m_LightmapParameters: {fileID: 0} + m_TextureCompression: 1 + m_FinalGather: 0 + m_FinalGatherRayCount: 1024 + m_ReflectionCompression: 2 + m_LightmapSnapshot: {fileID: 0} + m_RuntimeCPUUsage: 25 +--- !u!196 &4 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 2 + agentRadius: .5 + agentHeight: 2 + agentSlope: 45 + agentClimb: .400000006 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + accuratePlacement: 0 + minRegionArea: 2 + cellSize: .166666672 + manualCellSize: 0 + m_NavMeshData: {fileID: 0} +--- !u!1 &551253050 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 4: {fileID: 551253055} + - 20: {fileID: 551253054} + - 92: {fileID: 551253053} + - 124: {fileID: 551253052} + - 81: {fileID: 551253051} + 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 &551253051 +AudioListener: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 +--- !u!124 &551253052 +Behaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 +--- !u!92 &551253053 +Behaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 +--- !u!20 &551253054 +Camera: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 2 + m_BackGroundColor: {r: .933333337, g: .933333337, b: .933333337, a: 1} + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: .300000012 + 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: 0 + m_OcclusionCulling: 1 + m_StereoConvergence: 10 + m_StereoSeparation: .0219999999 + m_StereoMirrorMode: 0 +--- !u!4 &551253055 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: -10} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 +--- !u!1 &735375198 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 4: {fileID: 735375200} + - 108: {fileID: 735375199} + 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 &735375199 +Light: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 735375198} + m_Enabled: 1 + serializedVersion: 6 + m_Type: 1 + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_Intensity: 1 + m_Range: 10 + m_SpotAngle: 30 + m_CookieSize: 10 + m_Shadows: + m_Type: 2 + m_Resolution: -1 + m_Strength: 1 + m_Bias: .0500000007 + m_NormalBias: .400000006 + m_Cookie: {fileID: 0} + m_DrawHalo: 0 + m_Flare: {fileID: 0} + m_RenderMode: 0 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_Lightmapping: 4 + m_BounceIntensity: 1 + m_ShadowRadius: 0 + m_ShadowAngle: 0 + m_AreaSize: {x: 1, y: 1} +--- !u!4 &735375200 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 735375198} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 3, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 1 +--- !u!1001 &1552663943 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 444704, guid: 1c3b01984c06a8a4789f8458da3c2a37, type: 2} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 444704, guid: 1c3b01984c06a8a4789f8458da3c2a37, type: 2} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 444704, guid: 1c3b01984c06a8a4789f8458da3c2a37, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 444704, guid: 1c3b01984c06a8a4789f8458da3c2a37, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 444704, guid: 1c3b01984c06a8a4789f8458da3c2a37, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 444704, guid: 1c3b01984c06a8a4789f8458da3c2a37, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 444704, guid: 1c3b01984c06a8a4789f8458da3c2a37, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 444704, guid: 1c3b01984c06a8a4789f8458da3c2a37, type: 2} + propertyPath: m_RootOrder + value: 2 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: 1c3b01984c06a8a4789f8458da3c2a37, type: 2} + m_IsPrefabParent: 0 diff --git a/Assets/Examples/Arrive.unity.meta b/Assets/Examples/Arrive.unity.meta new file mode 100644 index 0000000..4ac251a --- /dev/null +++ b/Assets/Examples/Arrive.unity.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 35e3bef5247340a429948872e06fe695 +timeCreated: 1445137318 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Examples/CollisionAvoidance.unity b/Assets/Examples/CollisionAvoidance.unity new file mode 100644 index 0000000..e29e329 --- /dev/null +++ b/Assets/Examples/CollisionAvoidance.unity @@ -0,0 +1,457 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +SceneSettings: + m_ObjectHideFlags: 0 + m_PVSData: + m_PVSObjectsArray: [] + m_PVSPortalsArray: [] + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: .25 + backfaceThreshold: 100 +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 6 + m_Fog: 0 + m_FogColor: {r: .5, g: .5, b: .5, a: 1} + m_FogMode: 3 + m_FogDensity: .00999999978 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: .211999997, g: .226999998, b: .259000003, a: 1} + m_AmbientEquatorColor: {r: .114, g: .125, b: .133000001, a: 1} + m_AmbientGroundColor: {r: .0469999984, g: .0430000015, b: .0350000001, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 0 + m_SkyboxMaterial: {fileID: 0} + m_HaloStrength: .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} +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 5 + m_GIWorkflowMode: 0 + m_LightmapsMode: 1 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_TemporalCoherenceThreshold: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 1 + m_EnableRealtimeLightmaps: 1 + m_LightmapEditorSettings: + serializedVersion: 3 + m_Resolution: 2 + m_BakeResolution: 40 + m_TextureWidth: 1024 + m_TextureHeight: 1024 + m_AOMaxDistance: 1 + m_Padding: 2 + m_CompAOExponent: 0 + m_LightmapParameters: {fileID: 0} + m_TextureCompression: 1 + m_FinalGather: 0 + m_FinalGatherRayCount: 1024 + m_ReflectionCompression: 2 + m_LightmapSnapshot: {fileID: 0} + m_RuntimeCPUUsage: 25 +--- !u!196 &4 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 2 + agentRadius: .5 + agentHeight: 2 + agentSlope: 45 + agentClimb: .400000006 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + accuratePlacement: 0 + minRegionArea: 2 + cellSize: .166666672 + manualCellSize: 0 + m_NavMeshData: {fileID: 0} +--- !u!1001 &225932908 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 401788, guid: 61b087f5f78e8d649a464e6025f7abc1, type: 2} + propertyPath: m_LocalPosition.x + value: -3 + objectReference: {fileID: 0} + - target: {fileID: 401788, guid: 61b087f5f78e8d649a464e6025f7abc1, type: 2} + propertyPath: m_LocalPosition.y + value: 2 + objectReference: {fileID: 0} + - target: {fileID: 401788, guid: 61b087f5f78e8d649a464e6025f7abc1, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 401788, guid: 61b087f5f78e8d649a464e6025f7abc1, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 401788, guid: 61b087f5f78e8d649a464e6025f7abc1, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 401788, guid: 61b087f5f78e8d649a464e6025f7abc1, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 401788, guid: 61b087f5f78e8d649a464e6025f7abc1, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 401788, guid: 61b087f5f78e8d649a464e6025f7abc1, type: 2} + propertyPath: m_RootOrder + value: 2 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: 61b087f5f78e8d649a464e6025f7abc1, type: 2} + m_IsPrefabParent: 0 +--- !u!1001 &348613320 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 471744, guid: 4b8141dc3c6e4cb49b4cf7b795ca5d74, type: 2} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 471744, guid: 4b8141dc3c6e4cb49b4cf7b795ca5d74, type: 2} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 471744, guid: 4b8141dc3c6e4cb49b4cf7b795ca5d74, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 471744, guid: 4b8141dc3c6e4cb49b4cf7b795ca5d74, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 471744, guid: 4b8141dc3c6e4cb49b4cf7b795ca5d74, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 471744, guid: 4b8141dc3c6e4cb49b4cf7b795ca5d74, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 471744, guid: 4b8141dc3c6e4cb49b4cf7b795ca5d74, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 471744, guid: 4b8141dc3c6e4cb49b4cf7b795ca5d74, type: 2} + propertyPath: m_RootOrder + value: 3 + objectReference: {fileID: 0} + - target: {fileID: 11449618, guid: 4b8141dc3c6e4cb49b4cf7b795ca5d74, type: 2} + propertyPath: path.nodes.Array.data[0].x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 11449618, guid: 4b8141dc3c6e4cb49b4cf7b795ca5d74, type: 2} + propertyPath: path.nodes.Array.data[0].y + value: 4 + objectReference: {fileID: 0} + - target: {fileID: 11449618, guid: 4b8141dc3c6e4cb49b4cf7b795ca5d74, type: 2} + propertyPath: path.nodes.Array.data[1].x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 11449618, guid: 4b8141dc3c6e4cb49b4cf7b795ca5d74, type: 2} + propertyPath: path.nodes.Array.data[1].y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 11449618, guid: 4b8141dc3c6e4cb49b4cf7b795ca5d74, type: 2} + propertyPath: reversePath + value: 1 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: 4b8141dc3c6e4cb49b4cf7b795ca5d74, type: 2} + m_IsPrefabParent: 0 +--- !u!1 &551253050 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 4: {fileID: 551253055} + - 20: {fileID: 551253054} + - 92: {fileID: 551253053} + - 124: {fileID: 551253052} + - 81: {fileID: 551253051} + 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 &551253051 +AudioListener: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 +--- !u!124 &551253052 +Behaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 +--- !u!92 &551253053 +Behaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 +--- !u!20 &551253054 +Camera: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 2 + m_BackGroundColor: {r: .933333337, g: .933333337, b: .933333337, a: 1} + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: .300000012 + 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: 0 + m_OcclusionCulling: 1 + m_StereoConvergence: 10 + m_StereoSeparation: .0219999999 + m_StereoMirrorMode: 0 +--- !u!4 &551253055 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: -10} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 +--- !u!1 &735375198 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 4: {fileID: 735375200} + - 108: {fileID: 735375199} + 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 &735375199 +Light: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 735375198} + m_Enabled: 1 + serializedVersion: 6 + m_Type: 1 + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_Intensity: 1 + m_Range: 10 + m_SpotAngle: 30 + m_CookieSize: 10 + m_Shadows: + m_Type: 2 + m_Resolution: -1 + m_Strength: 1 + m_Bias: .0500000007 + m_NormalBias: .400000006 + m_Cookie: {fileID: 0} + m_DrawHalo: 0 + m_Flare: {fileID: 0} + m_RenderMode: 0 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_Lightmapping: 4 + m_BounceIntensity: 1 + m_ShadowRadius: 0 + m_ShadowAngle: 0 + m_AreaSize: {x: 1, y: 1} +--- !u!4 &735375200 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 735375198} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 3, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 1 +--- !u!1001 &1645856993 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 401788, guid: 61b087f5f78e8d649a464e6025f7abc1, type: 2} + propertyPath: m_LocalPosition.x + value: 2 + objectReference: {fileID: 0} + - target: {fileID: 401788, guid: 61b087f5f78e8d649a464e6025f7abc1, type: 2} + propertyPath: m_LocalPosition.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 401788, guid: 61b087f5f78e8d649a464e6025f7abc1, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 401788, guid: 61b087f5f78e8d649a464e6025f7abc1, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 401788, guid: 61b087f5f78e8d649a464e6025f7abc1, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 401788, guid: 61b087f5f78e8d649a464e6025f7abc1, type: 2} + propertyPath: m_LocalRotation.z + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 401788, guid: 61b087f5f78e8d649a464e6025f7abc1, type: 2} + propertyPath: m_LocalRotation.w + value: -1.62920685e-07 + objectReference: {fileID: 0} + - target: {fileID: 401788, guid: 61b087f5f78e8d649a464e6025f7abc1, type: 2} + propertyPath: m_RootOrder + value: 4 + objectReference: {fileID: 0} + - target: {fileID: 116958, guid: 61b087f5f78e8d649a464e6025f7abc1, type: 2} + propertyPath: m_Name + value: ColAvoidUnit1 (1) + objectReference: {fileID: 0} + - target: {fileID: 11436192, guid: 61b087f5f78e8d649a464e6025f7abc1, type: 2} + propertyPath: path.nodes.Array.data[0].x + value: 2 + objectReference: {fileID: 0} + - target: {fileID: 11436192, guid: 61b087f5f78e8d649a464e6025f7abc1, type: 2} + propertyPath: path.nodes.Array.data[1].x + value: -2 + objectReference: {fileID: 0} + - target: {fileID: 11436192, guid: 61b087f5f78e8d649a464e6025f7abc1, type: 2} + propertyPath: path.nodes.Array.data[0].y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 11436192, guid: 61b087f5f78e8d649a464e6025f7abc1, type: 2} + propertyPath: path.nodes.Array.data[1].y + value: 4 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: 61b087f5f78e8d649a464e6025f7abc1, type: 2} + m_IsPrefabParent: 0 +--- !u!1001 &2040632570 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 401788, guid: d6f1274d3e6263641a5045bd41ecdb94, type: 2} + propertyPath: m_LocalPosition.x + value: -2 + objectReference: {fileID: 0} + - target: {fileID: 401788, guid: d6f1274d3e6263641a5045bd41ecdb94, type: 2} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 401788, guid: d6f1274d3e6263641a5045bd41ecdb94, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 401788, guid: d6f1274d3e6263641a5045bd41ecdb94, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 401788, guid: d6f1274d3e6263641a5045bd41ecdb94, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 401788, guid: d6f1274d3e6263641a5045bd41ecdb94, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 401788, guid: d6f1274d3e6263641a5045bd41ecdb94, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 401788, guid: d6f1274d3e6263641a5045bd41ecdb94, type: 2} + propertyPath: m_RootOrder + value: 5 + objectReference: {fileID: 0} + - target: {fileID: 11436192, guid: d6f1274d3e6263641a5045bd41ecdb94, type: 2} + propertyPath: path.nodes.Array.data[0].x + value: -2 + objectReference: {fileID: 0} + - target: {fileID: 11436192, guid: d6f1274d3e6263641a5045bd41ecdb94, type: 2} + propertyPath: path.nodes.Array.data[0].y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 11436192, guid: d6f1274d3e6263641a5045bd41ecdb94, type: 2} + propertyPath: path.nodes.Array.data[1].x + value: -1 + objectReference: {fileID: 0} + - target: {fileID: 11436192, guid: d6f1274d3e6263641a5045bd41ecdb94, type: 2} + propertyPath: path.nodes.Array.data[1].y + value: 4 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: d6f1274d3e6263641a5045bd41ecdb94, type: 2} + m_IsPrefabParent: 0 diff --git a/Assets/Examples/CollisionAvoidance.unity.meta b/Assets/Examples/CollisionAvoidance.unity.meta new file mode 100644 index 0000000..1d6e0da --- /dev/null +++ b/Assets/Examples/CollisionAvoidance.unity.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 46dc14dba7131d14e90fbc4e25c64249 +timeCreated: 1445039827 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Examples/Empty.unity b/Assets/Examples/Empty.unity new file mode 100644 index 0000000..c0234b9 --- /dev/null +++ b/Assets/Examples/Empty.unity @@ -0,0 +1,233 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +SceneSettings: + m_ObjectHideFlags: 0 + m_PVSData: + m_PVSObjectsArray: [] + m_PVSPortalsArray: [] + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: .25 + backfaceThreshold: 100 +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 6 + m_Fog: 0 + m_FogColor: {r: .5, g: .5, b: .5, a: 1} + m_FogMode: 3 + m_FogDensity: .00999999978 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: .211999997, g: .226999998, b: .259000003, a: 1} + m_AmbientEquatorColor: {r: .114, g: .125, b: .133000001, a: 1} + m_AmbientGroundColor: {r: .0469999984, g: .0430000015, b: .0350000001, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 0 + m_SkyboxMaterial: {fileID: 0} + m_HaloStrength: .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} +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 5 + m_GIWorkflowMode: 0 + m_LightmapsMode: 1 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_TemporalCoherenceThreshold: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 1 + m_EnableRealtimeLightmaps: 1 + m_LightmapEditorSettings: + serializedVersion: 3 + m_Resolution: 2 + m_BakeResolution: 40 + m_TextureWidth: 1024 + m_TextureHeight: 1024 + m_AOMaxDistance: 1 + m_Padding: 2 + m_CompAOExponent: 0 + m_LightmapParameters: {fileID: 0} + m_TextureCompression: 1 + m_FinalGather: 0 + m_FinalGatherRayCount: 1024 + m_ReflectionCompression: 2 + m_LightmapSnapshot: {fileID: 0} + m_RuntimeCPUUsage: 25 +--- !u!196 &4 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 2 + agentRadius: .5 + agentHeight: 2 + agentSlope: 45 + agentClimb: .400000006 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + accuratePlacement: 0 + minRegionArea: 2 + cellSize: .166666672 + manualCellSize: 0 + m_NavMeshData: {fileID: 0} +--- !u!1 &551253050 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 4: {fileID: 551253055} + - 20: {fileID: 551253054} + - 92: {fileID: 551253053} + - 124: {fileID: 551253052} + - 81: {fileID: 551253051} + 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 &551253051 +AudioListener: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 +--- !u!124 &551253052 +Behaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 +--- !u!92 &551253053 +Behaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 +--- !u!20 &551253054 +Camera: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 2 + m_BackGroundColor: {r: .933333337, g: .933333337, b: .933333337, a: 1} + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: .300000012 + 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: 0 + m_OcclusionCulling: 1 + m_StereoConvergence: 10 + m_StereoSeparation: .0219999999 + m_StereoMirrorMode: 0 +--- !u!4 &551253055 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: -15} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 +--- !u!1 &735375198 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 4: {fileID: 735375200} + - 108: {fileID: 735375199} + 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 &735375199 +Light: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 735375198} + m_Enabled: 1 + serializedVersion: 6 + m_Type: 1 + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_Intensity: 1 + m_Range: 10 + m_SpotAngle: 30 + m_CookieSize: 10 + m_Shadows: + m_Type: 2 + m_Resolution: -1 + m_Strength: 1 + m_Bias: .0500000007 + m_NormalBias: .400000006 + m_Cookie: {fileID: 0} + m_DrawHalo: 0 + m_Flare: {fileID: 0} + m_RenderMode: 0 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_Lightmapping: 4 + m_BounceIntensity: 1 + m_ShadowRadius: 0 + m_ShadowAngle: 0 + m_AreaSize: {x: 1, y: 1} +--- !u!4 &735375200 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 735375198} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 3, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 1 diff --git a/Assets/Examples/Empty.unity.meta b/Assets/Examples/Empty.unity.meta new file mode 100644 index 0000000..6af31fd --- /dev/null +++ b/Assets/Examples/Empty.unity.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 8cc9e3bd54684af4ebbf6de6da93423e +timeCreated: 1444773879 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Examples/Evade.unity b/Assets/Examples/Evade.unity new file mode 100644 index 0000000..fdc5b28 --- /dev/null +++ b/Assets/Examples/Evade.unity @@ -0,0 +1,376 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +SceneSettings: + m_ObjectHideFlags: 0 + m_PVSData: + m_PVSObjectsArray: [] + m_PVSPortalsArray: [] + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: .25 + backfaceThreshold: 100 +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 6 + m_Fog: 0 + m_FogColor: {r: .5, g: .5, b: .5, a: 1} + m_FogMode: 3 + m_FogDensity: .00999999978 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: .211999997, g: .226999998, b: .259000003, a: 1} + m_AmbientEquatorColor: {r: .114, g: .125, b: .133000001, a: 1} + m_AmbientGroundColor: {r: .0469999984, g: .0430000015, b: .0350000001, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 0 + m_SkyboxMaterial: {fileID: 0} + m_HaloStrength: .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} +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 5 + m_GIWorkflowMode: 0 + m_LightmapsMode: 1 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_TemporalCoherenceThreshold: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 1 + m_EnableRealtimeLightmaps: 1 + m_LightmapEditorSettings: + serializedVersion: 3 + m_Resolution: 2 + m_BakeResolution: 40 + m_TextureWidth: 1024 + m_TextureHeight: 1024 + m_AOMaxDistance: 1 + m_Padding: 2 + m_CompAOExponent: 0 + m_LightmapParameters: {fileID: 0} + m_TextureCompression: 1 + m_FinalGather: 0 + m_FinalGatherRayCount: 1024 + m_ReflectionCompression: 2 + m_LightmapSnapshot: {fileID: 0} + m_RuntimeCPUUsage: 25 +--- !u!196 &4 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 2 + agentRadius: .5 + agentHeight: 2 + agentSlope: 45 + agentClimb: .400000006 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + accuratePlacement: 0 + minRegionArea: 2 + cellSize: .166666672 + manualCellSize: 0 + m_NavMeshData: {fileID: 0} +--- !u!1001 &482017761 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 469634, guid: 500699f3ba0b7f0438e50d52a0fb3691, type: 2} + propertyPath: m_LocalPosition.x + value: -2.47000003 + objectReference: {fileID: 0} + - target: {fileID: 469634, guid: 500699f3ba0b7f0438e50d52a0fb3691, type: 2} + propertyPath: m_LocalPosition.y + value: 2.02999997 + objectReference: {fileID: 0} + - target: {fileID: 469634, guid: 500699f3ba0b7f0438e50d52a0fb3691, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 469634, guid: 500699f3ba0b7f0438e50d52a0fb3691, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 469634, guid: 500699f3ba0b7f0438e50d52a0fb3691, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 469634, guid: 500699f3ba0b7f0438e50d52a0fb3691, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 469634, guid: 500699f3ba0b7f0438e50d52a0fb3691, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 469634, guid: 500699f3ba0b7f0438e50d52a0fb3691, type: 2} + propertyPath: m_RootOrder + value: 4 + objectReference: {fileID: 0} + - target: {fileID: 11418928, guid: 500699f3ba0b7f0438e50d52a0fb3691, type: 2} + propertyPath: target + value: + objectReference: {fileID: 1458497020} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: 500699f3ba0b7f0438e50d52a0fb3691, type: 2} + m_IsPrefabParent: 0 +--- !u!1 &551253050 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 4: {fileID: 551253055} + - 20: {fileID: 551253054} + - 92: {fileID: 551253053} + - 124: {fileID: 551253052} + - 81: {fileID: 551253051} + 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 &551253051 +AudioListener: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 +--- !u!124 &551253052 +Behaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 +--- !u!92 &551253053 +Behaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 +--- !u!20 &551253054 +Camera: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 2 + m_BackGroundColor: {r: .933333337, g: .933333337, b: .933333337, a: 1} + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: .300000012 + 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: 0 + m_OcclusionCulling: 1 + m_StereoConvergence: 10 + m_StereoSeparation: .0219999999 + m_StereoMirrorMode: 0 +--- !u!4 &551253055 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: -15} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 +--- !u!1001 &732246796 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 465116, guid: c5bb1fe20c939954ba720df0cb0be27c, type: 2} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 465116, guid: c5bb1fe20c939954ba720df0cb0be27c, type: 2} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 465116, guid: c5bb1fe20c939954ba720df0cb0be27c, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 465116, guid: c5bb1fe20c939954ba720df0cb0be27c, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 465116, guid: c5bb1fe20c939954ba720df0cb0be27c, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 465116, guid: c5bb1fe20c939954ba720df0cb0be27c, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 465116, guid: c5bb1fe20c939954ba720df0cb0be27c, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 465116, guid: c5bb1fe20c939954ba720df0cb0be27c, type: 2} + propertyPath: m_RootOrder + value: 3 + objectReference: {fileID: 0} + - target: {fileID: 11497968, guid: c5bb1fe20c939954ba720df0cb0be27c, type: 2} + propertyPath: target + value: + objectReference: {fileID: 1054179065} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: c5bb1fe20c939954ba720df0cb0be27c, type: 2} + m_IsPrefabParent: 0 +--- !u!1 &735375198 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 4: {fileID: 735375200} + - 108: {fileID: 735375199} + 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 &735375199 +Light: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 735375198} + m_Enabled: 1 + serializedVersion: 6 + m_Type: 1 + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_Intensity: 1 + m_Range: 10 + m_SpotAngle: 30 + m_CookieSize: 10 + m_Shadows: + m_Type: 2 + m_Resolution: -1 + m_Strength: 1 + m_Bias: .0500000007 + m_NormalBias: .400000006 + m_Cookie: {fileID: 0} + m_DrawHalo: 0 + m_Flare: {fileID: 0} + m_RenderMode: 0 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_Lightmapping: 4 + m_BounceIntensity: 1 + m_ShadowRadius: 0 + m_ShadowAngle: 0 + m_AreaSize: {x: 1, y: 1} +--- !u!4 &735375200 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 735375198} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 3, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 1 +--- !u!54 &1054179065 stripped +Rigidbody: + m_PrefabParentObject: {fileID: 5427432, guid: 500699f3ba0b7f0438e50d52a0fb3691, + type: 2} + m_PrefabInternal: {fileID: 482017761} +--- !u!1001 &1080571765 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_RootOrder + value: 2 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + m_IsPrefabParent: 0 +--- !u!4 &1458497020 stripped +Transform: + m_PrefabParentObject: {fileID: 465116, guid: c5bb1fe20c939954ba720df0cb0be27c, type: 2} + m_PrefabInternal: {fileID: 732246796} diff --git a/Assets/Examples/Evade.unity.meta b/Assets/Examples/Evade.unity.meta new file mode 100644 index 0000000..e6ead18 --- /dev/null +++ b/Assets/Examples/Evade.unity.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 4a8d14936bcfd9b4db59dc4d477fbe0d +timeCreated: 1445123886 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Examples/Flee.unity b/Assets/Examples/Flee.unity new file mode 100644 index 0000000..fffdbe9 --- /dev/null +++ b/Assets/Examples/Flee.unity @@ -0,0 +1,438 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +SceneSettings: + m_ObjectHideFlags: 0 + m_PVSData: + m_PVSObjectsArray: [] + m_PVSPortalsArray: [] + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: .25 + backfaceThreshold: 100 +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 6 + m_Fog: 0 + m_FogColor: {r: .5, g: .5, b: .5, a: 1} + m_FogMode: 3 + m_FogDensity: .00999999978 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: .211999997, g: .226999998, b: .259000003, a: 1} + m_AmbientEquatorColor: {r: .114, g: .125, b: .133000001, a: 1} + m_AmbientGroundColor: {r: .0469999984, g: .0430000015, b: .0350000001, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 0 + m_SkyboxMaterial: {fileID: 0} + m_HaloStrength: .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} +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 5 + m_GIWorkflowMode: 0 + m_LightmapsMode: 1 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_TemporalCoherenceThreshold: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 1 + m_EnableRealtimeLightmaps: 1 + m_LightmapEditorSettings: + serializedVersion: 3 + m_Resolution: 2 + m_BakeResolution: 40 + m_TextureWidth: 1024 + m_TextureHeight: 1024 + m_AOMaxDistance: 1 + m_Padding: 2 + m_CompAOExponent: 0 + m_LightmapParameters: {fileID: 0} + m_TextureCompression: 1 + m_FinalGather: 0 + m_FinalGatherRayCount: 1024 + m_ReflectionCompression: 2 + m_LightmapSnapshot: {fileID: 0} + m_RuntimeCPUUsage: 25 +--- !u!196 &4 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 2 + agentRadius: .5 + agentHeight: 2 + agentSlope: 45 + agentClimb: .400000006 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + accuratePlacement: 0 + minRegionArea: 2 + cellSize: .166666672 + manualCellSize: 0 + m_NavMeshData: {fileID: 0} +--- !u!1001 &260153143 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 11449618, guid: 4b8141dc3c6e4cb49b4cf7b795ca5d74, type: 2} + propertyPath: path.nodes.Array.size + value: 5 + objectReference: {fileID: 0} + - target: {fileID: 471744, guid: 4b8141dc3c6e4cb49b4cf7b795ca5d74, type: 2} + propertyPath: m_LocalPosition.x + value: -2 + objectReference: {fileID: 0} + - target: {fileID: 471744, guid: 4b8141dc3c6e4cb49b4cf7b795ca5d74, type: 2} + propertyPath: m_LocalPosition.y + value: 2 + objectReference: {fileID: 0} + - target: {fileID: 471744, guid: 4b8141dc3c6e4cb49b4cf7b795ca5d74, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 471744, guid: 4b8141dc3c6e4cb49b4cf7b795ca5d74, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 471744, guid: 4b8141dc3c6e4cb49b4cf7b795ca5d74, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 471744, guid: 4b8141dc3c6e4cb49b4cf7b795ca5d74, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 471744, guid: 4b8141dc3c6e4cb49b4cf7b795ca5d74, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 471744, guid: 4b8141dc3c6e4cb49b4cf7b795ca5d74, type: 2} + propertyPath: m_RootOrder + value: 4 + objectReference: {fileID: 0} + - target: {fileID: 11449618, guid: 4b8141dc3c6e4cb49b4cf7b795ca5d74, type: 2} + propertyPath: path.nodes.Array.data[2].x + value: 2 + objectReference: {fileID: 0} + - target: {fileID: 11449618, guid: 4b8141dc3c6e4cb49b4cf7b795ca5d74, type: 2} + propertyPath: path.nodes.Array.data[2].y + value: -2 + objectReference: {fileID: 0} + - target: {fileID: 11449618, guid: 4b8141dc3c6e4cb49b4cf7b795ca5d74, type: 2} + propertyPath: path.nodes.Array.data[3].x + value: -2 + objectReference: {fileID: 0} + - target: {fileID: 11449618, guid: 4b8141dc3c6e4cb49b4cf7b795ca5d74, type: 2} + propertyPath: path.nodes.Array.data[3].y + value: -2 + objectReference: {fileID: 0} + - target: {fileID: 11449618, guid: 4b8141dc3c6e4cb49b4cf7b795ca5d74, type: 2} + propertyPath: path.nodes.Array.data[4].x + value: -2 + objectReference: {fileID: 0} + - target: {fileID: 11449618, guid: 4b8141dc3c6e4cb49b4cf7b795ca5d74, type: 2} + propertyPath: path.nodes.Array.data[4].y + value: 2 + objectReference: {fileID: 0} + - target: {fileID: 11449618, guid: 4b8141dc3c6e4cb49b4cf7b795ca5d74, type: 2} + propertyPath: path.nodes.Array.data[0].y + value: 2 + objectReference: {fileID: 0} + - target: {fileID: 11449618, guid: 4b8141dc3c6e4cb49b4cf7b795ca5d74, type: 2} + propertyPath: path.nodes.Array.data[1].x + value: 2 + objectReference: {fileID: 0} + - target: {fileID: 11449618, guid: 4b8141dc3c6e4cb49b4cf7b795ca5d74, type: 2} + propertyPath: path.nodes.Array.data[1].y + value: 2 + objectReference: {fileID: 0} + - target: {fileID: 11449618, guid: 4b8141dc3c6e4cb49b4cf7b795ca5d74, type: 2} + propertyPath: pathLoop + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 11449618, guid: 4b8141dc3c6e4cb49b4cf7b795ca5d74, type: 2} + propertyPath: reversePath + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 11449618, guid: 4b8141dc3c6e4cb49b4cf7b795ca5d74, type: 2} + propertyPath: path.nodes.Array.data[0].x + value: -2 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: 4b8141dc3c6e4cb49b4cf7b795ca5d74, type: 2} + m_IsPrefabParent: 0 +--- !u!1 &551253050 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 4: {fileID: 551253055} + - 20: {fileID: 551253054} + - 92: {fileID: 551253053} + - 124: {fileID: 551253052} + - 81: {fileID: 551253051} + 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 &551253051 +AudioListener: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 +--- !u!124 &551253052 +Behaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 +--- !u!92 &551253053 +Behaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 +--- !u!20 &551253054 +Camera: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 2 + m_BackGroundColor: {r: .933333337, g: .933333337, b: .933333337, a: 1} + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: .300000012 + 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: 0 + m_OcclusionCulling: 1 + m_StereoConvergence: 10 + m_StereoSeparation: .0219999999 + m_StereoMirrorMode: 0 +--- !u!4 &551253055 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: -15} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 +--- !u!4 &627796957 stripped +Transform: + m_PrefabParentObject: {fileID: 471744, guid: 4b8141dc3c6e4cb49b4cf7b795ca5d74, type: 2} + m_PrefabInternal: {fileID: 260153143} +--- !u!1 &686763080 stripped +GameObject: + m_PrefabParentObject: {fileID: 131706, guid: 28bd245136767a6439883098b9d5f339, type: 2} + m_PrefabInternal: {fileID: 1215689966} +--- !u!114 &686763081 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 686763080} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 9cdf64bcab4d4d8468c92f1bc4b23f7c, type: 3} + m_Name: + m_EditorClassIdentifier: + panicDist: 3.5 + decelerateOnStop: 1 + maxAcceleration: 10 + timeToTarget: .100000001 +--- !u!1 &735375198 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 4: {fileID: 735375200} + - 108: {fileID: 735375199} + 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 &735375199 +Light: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 735375198} + m_Enabled: 1 + serializedVersion: 6 + m_Type: 1 + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_Intensity: 1 + m_Range: 10 + m_SpotAngle: 30 + m_CookieSize: 10 + m_Shadows: + m_Type: 2 + m_Resolution: -1 + m_Strength: 1 + m_Bias: .0500000007 + m_NormalBias: .400000006 + m_Cookie: {fileID: 0} + m_DrawHalo: 0 + m_Flare: {fileID: 0} + m_RenderMode: 0 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_Lightmapping: 4 + m_BounceIntensity: 1 + m_ShadowRadius: 0 + m_ShadowAngle: 0 + m_AreaSize: {x: 1, y: 1} +--- !u!4 &735375200 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 735375198} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 3, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 1 +--- !u!1001 &1080571765 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_RootOrder + value: 4 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + m_IsPrefabParent: 0 +--- !u!1001 &1215689966 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 481000, guid: 28bd245136767a6439883098b9d5f339, type: 2} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 481000, guid: 28bd245136767a6439883098b9d5f339, type: 2} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 481000, guid: 28bd245136767a6439883098b9d5f339, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 481000, guid: 28bd245136767a6439883098b9d5f339, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 481000, guid: 28bd245136767a6439883098b9d5f339, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 481000, guid: 28bd245136767a6439883098b9d5f339, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 481000, guid: 28bd245136767a6439883098b9d5f339, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 481000, guid: 28bd245136767a6439883098b9d5f339, type: 2} + propertyPath: m_RootOrder + value: 2 + objectReference: {fileID: 0} + - target: {fileID: 11404330, guid: 28bd245136767a6439883098b9d5f339, type: 2} + propertyPath: target + value: + objectReference: {fileID: 627796957} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: 28bd245136767a6439883098b9d5f339, type: 2} + m_IsPrefabParent: 0 diff --git a/Assets/Examples/Flee.unity.meta b/Assets/Examples/Flee.unity.meta new file mode 100644 index 0000000..9a13436 --- /dev/null +++ b/Assets/Examples/Flee.unity.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 701b8f410c6884341a1573a98233af46 +timeCreated: 1445125003 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Examples/Flocking.unity b/Assets/Examples/Flocking.unity new file mode 100644 index 0000000..fca1abc --- /dev/null +++ b/Assets/Examples/Flocking.unity @@ -0,0 +1,601 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +SceneSettings: + m_ObjectHideFlags: 0 + m_PVSData: + m_PVSObjectsArray: [] + m_PVSPortalsArray: [] + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: .25 + backfaceThreshold: 100 +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 6 + m_Fog: 0 + m_FogColor: {r: .5, g: .5, b: .5, a: 1} + m_FogMode: 3 + m_FogDensity: .00999999978 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: .211999997, g: .226999998, b: .259000003, a: 1} + m_AmbientEquatorColor: {r: .114, g: .125, b: .133000001, a: 1} + m_AmbientGroundColor: {r: .0469999984, g: .0430000015, b: .0350000001, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 0 + m_SkyboxMaterial: {fileID: 0} + m_HaloStrength: .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} +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 5 + m_GIWorkflowMode: 0 + m_LightmapsMode: 1 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_TemporalCoherenceThreshold: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 1 + m_EnableRealtimeLightmaps: 1 + m_LightmapEditorSettings: + serializedVersion: 3 + m_Resolution: 2 + m_BakeResolution: 40 + m_TextureWidth: 1024 + m_TextureHeight: 1024 + m_AOMaxDistance: 1 + m_Padding: 2 + m_CompAOExponent: 0 + m_LightmapParameters: {fileID: 0} + m_TextureCompression: 1 + m_FinalGather: 0 + m_FinalGatherRayCount: 1024 + m_ReflectionCompression: 2 + m_LightmapSnapshot: {fileID: 0} + m_RuntimeCPUUsage: 25 +--- !u!196 &4 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 2 + agentRadius: .5 + agentHeight: 2 + agentSlope: 45 + agentClimb: .400000006 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + accuratePlacement: 0 + minRegionArea: 2 + cellSize: .166666672 + manualCellSize: 0 + m_NavMeshData: {fileID: 0} +--- !u!1001 &495440769 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 11493774, guid: 5c40413500bcaa84f884e9834bc27ec9, type: 2} + propertyPath: thingsToAvoid.Array.size + value: 4 + objectReference: {fileID: 0} + - target: {fileID: 491568, guid: 5c40413500bcaa84f884e9834bc27ec9, type: 2} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 491568, guid: 5c40413500bcaa84f884e9834bc27ec9, type: 2} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 491568, guid: 5c40413500bcaa84f884e9834bc27ec9, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 491568, guid: 5c40413500bcaa84f884e9834bc27ec9, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 491568, guid: 5c40413500bcaa84f884e9834bc27ec9, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 491568, guid: 5c40413500bcaa84f884e9834bc27ec9, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 491568, guid: 5c40413500bcaa84f884e9834bc27ec9, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 491568, guid: 5c40413500bcaa84f884e9834bc27ec9, type: 2} + propertyPath: m_RootOrder + value: 8 + objectReference: {fileID: 0} + - target: {fileID: 11493774, guid: 5c40413500bcaa84f884e9834bc27ec9, type: 2} + propertyPath: obj + value: + objectReference: {fileID: 411838, guid: 7811d047f013c5f43a36b27f05f17bbb, type: 2} + - target: {fileID: 105404, guid: 5c40413500bcaa84f884e9834bc27ec9, type: 2} + propertyPath: m_IsActive + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 11493774, guid: 5c40413500bcaa84f884e9834bc27ec9, type: 2} + propertyPath: randomizeOrientation + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 11493774, guid: 5c40413500bcaa84f884e9834bc27ec9, type: 2} + propertyPath: numberOfObjects + value: 75 + objectReference: {fileID: 0} + - target: {fileID: 11493774, guid: 5c40413500bcaa84f884e9834bc27ec9, type: 2} + propertyPath: thingsToAvoid.Array.data[0] + value: + objectReference: {fileID: 1044301833} + - target: {fileID: 11493774, guid: 5c40413500bcaa84f884e9834bc27ec9, type: 2} + propertyPath: thingsToAvoid.Array.data[1] + value: + objectReference: {fileID: 1160010932} + - target: {fileID: 11493774, guid: 5c40413500bcaa84f884e9834bc27ec9, type: 2} + propertyPath: thingsToAvoid.Array.data[2] + value: + objectReference: {fileID: 949489803} + - target: {fileID: 11493774, guid: 5c40413500bcaa84f884e9834bc27ec9, type: 2} + propertyPath: thingsToAvoid.Array.data[3] + value: + objectReference: {fileID: 2038159839} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: 5c40413500bcaa84f884e9834bc27ec9, type: 2} + m_IsPrefabParent: 0 +--- !u!1 &551253050 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 4: {fileID: 551253055} + - 20: {fileID: 551253054} + - 92: {fileID: 551253053} + - 124: {fileID: 551253052} + - 81: {fileID: 551253051} + 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 &551253051 +AudioListener: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 +--- !u!124 &551253052 +Behaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 +--- !u!92 &551253053 +Behaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 +--- !u!20 &551253054 +Camera: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 2 + m_BackGroundColor: {r: .933333337, g: .933333337, b: .933333337, a: 1} + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: .300000012 + 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: 0 + m_OcclusionCulling: 1 + m_StereoConvergence: 10 + m_StereoSeparation: .0219999999 + m_StereoMirrorMode: 0 +--- !u!4 &551253055 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: -20} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 +--- !u!1001 &690374863 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 408412, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: m_LocalPosition.x + value: 12.21 + objectReference: {fileID: 0} + - target: {fileID: 408412, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 408412, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 408412, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 408412, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 408412, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: m_LocalRotation.z + value: -.976011932 + objectReference: {fileID: 0} + - target: {fileID: 408412, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: m_LocalRotation.w + value: .217717245 + objectReference: {fileID: 0} + - target: {fileID: 408412, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: m_RootOrder + value: 4 + objectReference: {fileID: 0} + - target: {fileID: 11445756, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: maxVelocity + value: 3 + objectReference: {fileID: 0} + - target: {fileID: 11445756, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: maxAcceleration + value: 4 + objectReference: {fileID: 0} + - target: {fileID: 2364876, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: m_Materials.Array.data[0] + value: + objectReference: {fileID: 2100000, guid: 5eff0f9175d0e054290206daa1eef80e, type: 2} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + m_IsPrefabParent: 0 +--- !u!1001 &710067751 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 408412, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 408412, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: m_LocalPosition.y + value: -5.01000023 + objectReference: {fileID: 0} + - target: {fileID: 408412, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 408412, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 408412, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 408412, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: m_LocalRotation.z + value: .843110025 + objectReference: {fileID: 0} + - target: {fileID: 408412, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: m_LocalRotation.w + value: .537741065 + objectReference: {fileID: 0} + - target: {fileID: 408412, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: m_RootOrder + value: 7 + objectReference: {fileID: 0} + - target: {fileID: 118562, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: m_Name + value: WanderAvoidUnit (3) + objectReference: {fileID: 0} + - target: {fileID: 11445756, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: maxVelocity + value: 3 + objectReference: {fileID: 0} + - target: {fileID: 11445756, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: maxAcceleration + value: 4 + objectReference: {fileID: 0} + - target: {fileID: 2364876, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: m_Materials.Array.data[0] + value: + objectReference: {fileID: 2100000, guid: 5eff0f9175d0e054290206daa1eef80e, type: 2} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + m_IsPrefabParent: 0 +--- !u!1 &735375198 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 4: {fileID: 735375200} + - 108: {fileID: 735375199} + 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 &735375199 +Light: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 735375198} + m_Enabled: 1 + serializedVersion: 6 + m_Type: 1 + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_Intensity: 1 + m_Range: 10 + m_SpotAngle: 30 + m_CookieSize: 10 + m_Shadows: + m_Type: 2 + m_Resolution: -1 + m_Strength: 1 + m_Bias: .0500000007 + m_NormalBias: .400000006 + m_Cookie: {fileID: 0} + m_DrawHalo: 0 + m_Flare: {fileID: 0} + m_RenderMode: 0 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_Lightmapping: 4 + m_BounceIntensity: 1 + m_ShadowRadius: 0 + m_ShadowAngle: 0 + m_AreaSize: {x: 1, y: 1} +--- !u!4 &735375200 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 735375198} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 3, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 1 +--- !u!1001 &940496254 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_RootOrder + value: 2 + objectReference: {fileID: 0} + - target: {fileID: 160320, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_IsActive + value: 1 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + m_IsPrefabParent: 0 +--- !u!4 &949489803 stripped +Transform: + m_PrefabParentObject: {fileID: 408412, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + m_PrefabInternal: {fileID: 1583038580} +--- !u!4 &1044301833 stripped +Transform: + m_PrefabParentObject: {fileID: 408412, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + m_PrefabInternal: {fileID: 690374863} +--- !u!4 &1160010932 stripped +Transform: + m_PrefabParentObject: {fileID: 408412, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + m_PrefabInternal: {fileID: 1667001092} +--- !u!1001 &1583038580 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 408412, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: m_LocalPosition.x + value: -14.2700005 + objectReference: {fileID: 0} + - target: {fileID: 408412, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 408412, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 408412, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 408412, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 408412, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: m_LocalRotation.z + value: -.410719126 + objectReference: {fileID: 0} + - target: {fileID: 408412, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: m_LocalRotation.w + value: -.91176194 + objectReference: {fileID: 0} + - target: {fileID: 408412, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: m_RootOrder + value: 6 + objectReference: {fileID: 0} + - target: {fileID: 118562, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: m_Name + value: WanderAvoidUnit (2) + objectReference: {fileID: 0} + - target: {fileID: 11445756, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: maxVelocity + value: 3 + objectReference: {fileID: 0} + - target: {fileID: 11445756, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: maxAcceleration + value: 4 + objectReference: {fileID: 0} + - target: {fileID: 2364876, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: m_Materials.Array.data[0] + value: + objectReference: {fileID: 2100000, guid: 5eff0f9175d0e054290206daa1eef80e, type: 2} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + m_IsPrefabParent: 0 +--- !u!1001 &1667001092 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 408412, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 408412, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: m_LocalPosition.y + value: 5.19999981 + objectReference: {fileID: 0} + - target: {fileID: 408412, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 408412, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 408412, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 408412, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: m_LocalRotation.z + value: .558541417 + objectReference: {fileID: 0} + - target: {fileID: 408412, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: m_LocalRotation.w + value: -.829476714 + objectReference: {fileID: 0} + - target: {fileID: 408412, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: m_RootOrder + value: 5 + objectReference: {fileID: 0} + - target: {fileID: 118562, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: m_Name + value: WanderAvoidUnit (1) + objectReference: {fileID: 0} + - target: {fileID: 11445756, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: maxVelocity + value: 3 + objectReference: {fileID: 0} + - target: {fileID: 11445756, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: maxAcceleration + value: 4 + objectReference: {fileID: 0} + - target: {fileID: 2364876, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: m_Materials.Array.data[0] + value: + objectReference: {fileID: 2100000, guid: 5eff0f9175d0e054290206daa1eef80e, type: 2} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + m_IsPrefabParent: 0 +--- !u!4 &2038159839 stripped +Transform: + m_PrefabParentObject: {fileID: 408412, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + m_PrefabInternal: {fileID: 710067751} diff --git a/Assets/Examples/Flocking.unity.meta b/Assets/Examples/Flocking.unity.meta new file mode 100644 index 0000000..5749afd --- /dev/null +++ b/Assets/Examples/Flocking.unity.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a8ea7c2341ae6b043b33030f348b7cca +timeCreated: 1445554724 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Examples/FollowPath.unity b/Assets/Examples/FollowPath.unity new file mode 100644 index 0000000..8394337 --- /dev/null +++ b/Assets/Examples/FollowPath.unity @@ -0,0 +1,279 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +SceneSettings: + m_ObjectHideFlags: 0 + m_PVSData: + m_PVSObjectsArray: [] + m_PVSPortalsArray: [] + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: .25 + backfaceThreshold: 100 +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 6 + m_Fog: 0 + m_FogColor: {r: .5, g: .5, b: .5, a: 1} + m_FogMode: 3 + m_FogDensity: .00999999978 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: .211999997, g: .226999998, b: .259000003, a: 1} + m_AmbientEquatorColor: {r: .114, g: .125, b: .133000001, a: 1} + m_AmbientGroundColor: {r: .0469999984, g: .0430000015, b: .0350000001, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 0 + m_SkyboxMaterial: {fileID: 0} + m_HaloStrength: .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} +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 5 + m_GIWorkflowMode: 0 + m_LightmapsMode: 1 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_TemporalCoherenceThreshold: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 1 + m_EnableRealtimeLightmaps: 1 + m_LightmapEditorSettings: + serializedVersion: 3 + m_Resolution: 2 + m_BakeResolution: 40 + m_TextureWidth: 1024 + m_TextureHeight: 1024 + m_AOMaxDistance: 1 + m_Padding: 2 + m_CompAOExponent: 0 + m_LightmapParameters: {fileID: 0} + m_TextureCompression: 1 + m_FinalGather: 0 + m_FinalGatherRayCount: 1024 + m_ReflectionCompression: 2 + m_LightmapSnapshot: {fileID: 0} + m_RuntimeCPUUsage: 25 +--- !u!196 &4 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 2 + agentRadius: .5 + agentHeight: 2 + agentSlope: 45 + agentClimb: .400000006 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + accuratePlacement: 0 + minRegionArea: 2 + cellSize: .166666672 + manualCellSize: 0 + m_NavMeshData: {fileID: 0} +--- !u!1 &551253050 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 4: {fileID: 551253055} + - 20: {fileID: 551253054} + - 92: {fileID: 551253053} + - 124: {fileID: 551253052} + - 81: {fileID: 551253051} + 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 &551253051 +AudioListener: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 +--- !u!124 &551253052 +Behaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 +--- !u!92 &551253053 +Behaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 +--- !u!20 &551253054 +Camera: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 2 + m_BackGroundColor: {r: .933333337, g: .933333337, b: .933333337, a: 1} + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: .300000012 + 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: 0 + m_OcclusionCulling: 1 + m_StereoConvergence: 10 + m_StereoSeparation: .0219999999 + m_StereoMirrorMode: 0 +--- !u!4 &551253055 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: -10} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 +--- !u!1 &735375198 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 4: {fileID: 735375200} + - 108: {fileID: 735375199} + 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 &735375199 +Light: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 735375198} + m_Enabled: 1 + serializedVersion: 6 + m_Type: 1 + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_Intensity: 1 + m_Range: 10 + m_SpotAngle: 30 + m_CookieSize: 10 + m_Shadows: + m_Type: 2 + m_Resolution: -1 + m_Strength: 1 + m_Bias: .0500000007 + m_NormalBias: .400000006 + m_Cookie: {fileID: 0} + m_DrawHalo: 0 + m_Flare: {fileID: 0} + m_RenderMode: 0 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_Lightmapping: 4 + m_BounceIntensity: 1 + m_ShadowRadius: 0 + m_ShadowAngle: 0 + m_AreaSize: {x: 1, y: 1} +--- !u!4 &735375200 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 735375198} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 3, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 1 +--- !u!1001 &1901763279 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 471744, guid: 4b8141dc3c6e4cb49b4cf7b795ca5d74, type: 2} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 471744, guid: 4b8141dc3c6e4cb49b4cf7b795ca5d74, type: 2} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 471744, guid: 4b8141dc3c6e4cb49b4cf7b795ca5d74, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 471744, guid: 4b8141dc3c6e4cb49b4cf7b795ca5d74, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 471744, guid: 4b8141dc3c6e4cb49b4cf7b795ca5d74, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 471744, guid: 4b8141dc3c6e4cb49b4cf7b795ca5d74, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 471744, guid: 4b8141dc3c6e4cb49b4cf7b795ca5d74, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 471744, guid: 4b8141dc3c6e4cb49b4cf7b795ca5d74, type: 2} + propertyPath: m_RootOrder + value: 2 + objectReference: {fileID: 0} + - target: {fileID: 11449618, guid: 4b8141dc3c6e4cb49b4cf7b795ca5d74, type: 2} + propertyPath: reversePath + value: 1 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: 4b8141dc3c6e4cb49b4cf7b795ca5d74, type: 2} + m_IsPrefabParent: 0 diff --git a/Assets/Examples/FollowPath.unity.meta b/Assets/Examples/FollowPath.unity.meta new file mode 100644 index 0000000..663d607 --- /dev/null +++ b/Assets/Examples/FollowPath.unity.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 5e2d0d463b7b48b4caa90f6d2c950a8b +timeCreated: 1445039320 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Examples/Hide.unity b/Assets/Examples/Hide.unity new file mode 100644 index 0000000..7a8d37c --- /dev/null +++ b/Assets/Examples/Hide.unity @@ -0,0 +1,512 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +SceneSettings: + m_ObjectHideFlags: 0 + m_PVSData: + m_PVSObjectsArray: [] + m_PVSPortalsArray: [] + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: .25 + backfaceThreshold: 100 +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 6 + m_Fog: 0 + m_FogColor: {r: .5, g: .5, b: .5, a: 1} + m_FogMode: 3 + m_FogDensity: .00999999978 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: .211999997, g: .226999998, b: .259000003, a: 1} + m_AmbientEquatorColor: {r: .114, g: .125, b: .133000001, a: 1} + m_AmbientGroundColor: {r: .0469999984, g: .0430000015, b: .0350000001, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 0 + m_SkyboxMaterial: {fileID: 0} + m_HaloStrength: .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} +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 5 + m_GIWorkflowMode: 0 + m_LightmapsMode: 1 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_TemporalCoherenceThreshold: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 1 + m_EnableRealtimeLightmaps: 1 + m_LightmapEditorSettings: + serializedVersion: 3 + m_Resolution: 2 + m_BakeResolution: 40 + m_TextureWidth: 1024 + m_TextureHeight: 1024 + m_AOMaxDistance: 1 + m_Padding: 2 + m_CompAOExponent: 0 + m_LightmapParameters: {fileID: 0} + m_TextureCompression: 1 + m_FinalGather: 0 + m_FinalGatherRayCount: 1024 + m_ReflectionCompression: 2 + m_LightmapSnapshot: {fileID: 0} + m_RuntimeCPUUsage: 25 +--- !u!196 &4 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 2 + agentRadius: .5 + agentHeight: 2 + agentSlope: 45 + agentClimb: .400000006 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + accuratePlacement: 0 + minRegionArea: 2 + cellSize: .166666672 + manualCellSize: 0 + m_NavMeshData: {fileID: 0} +--- !u!4 &69819901 stripped +Transform: + m_PrefabParentObject: {fileID: 408412, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + m_PrefabInternal: {fileID: 1978370653} +--- !u!1 &551253050 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 4: {fileID: 551253055} + - 20: {fileID: 551253054} + - 92: {fileID: 551253053} + - 124: {fileID: 551253052} + - 81: {fileID: 551253051} + 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 &551253051 +AudioListener: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 +--- !u!124 &551253052 +Behaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 +--- !u!92 &551253053 +Behaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 +--- !u!20 &551253054 +Camera: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 2 + m_BackGroundColor: {r: .933333337, g: .933333337, b: .933333337, a: 1} + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: .300000012 + 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: 0 + m_OcclusionCulling: 1 + m_StereoConvergence: 10 + m_StereoSeparation: .0219999999 + m_StereoMirrorMode: 0 +--- !u!4 &551253055 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: -15} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 +--- !u!1 &735375198 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 4: {fileID: 735375200} + - 108: {fileID: 735375199} + 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 &735375199 +Light: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 735375198} + m_Enabled: 1 + serializedVersion: 6 + m_Type: 1 + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_Intensity: 1 + m_Range: 10 + m_SpotAngle: 30 + m_CookieSize: 10 + m_Shadows: + m_Type: 2 + m_Resolution: -1 + m_Strength: 1 + m_Bias: .0500000007 + m_NormalBias: .400000006 + m_Cookie: {fileID: 0} + m_DrawHalo: 0 + m_Flare: {fileID: 0} + m_RenderMode: 0 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_Lightmapping: 4 + m_BounceIntensity: 1 + m_ShadowRadius: 0 + m_ShadowAngle: 0 + m_AreaSize: {x: 1, y: 1} +--- !u!4 &735375200 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 735375198} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 3, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 1 +--- !u!4 &1049882220 stripped +Transform: + m_PrefabParentObject: {fileID: 435936, guid: 169903cbb559e444f97e4606acc79194, type: 2} + m_PrefabInternal: {fileID: 1903373595} +--- !u!1001 &1080571765 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_RootOrder + value: 4 + objectReference: {fileID: 0} + - target: {fileID: 160320, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_Layer + value: 8 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + m_IsPrefabParent: 0 +--- !u!54 &1450276239 stripped +Rigidbody: + m_PrefabParentObject: {fileID: 5403330, guid: bd1d62c70d726f34eb654e97eb3686cd, + type: 2} + m_PrefabInternal: {fileID: 1978370653} +--- !u!1001 &1756920970 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 435936, guid: 169903cbb559e444f97e4606acc79194, type: 2} + propertyPath: m_LocalPosition.x + value: -7 + objectReference: {fileID: 0} + - target: {fileID: 435936, guid: 169903cbb559e444f97e4606acc79194, type: 2} + propertyPath: m_LocalPosition.y + value: 3 + objectReference: {fileID: 0} + - target: {fileID: 435936, guid: 169903cbb559e444f97e4606acc79194, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 435936, guid: 169903cbb559e444f97e4606acc79194, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 435936, guid: 169903cbb559e444f97e4606acc79194, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 435936, guid: 169903cbb559e444f97e4606acc79194, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 435936, guid: 169903cbb559e444f97e4606acc79194, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 435936, guid: 169903cbb559e444f97e4606acc79194, type: 2} + propertyPath: m_RootOrder + value: 6 + objectReference: {fileID: 0} + - target: {fileID: 118936, guid: 169903cbb559e444f97e4606acc79194, type: 2} + propertyPath: m_Name + value: HideUnit (1) + objectReference: {fileID: 0} + - target: {fileID: 11443842, guid: 169903cbb559e444f97e4606acc79194, type: 2} + propertyPath: target + value: + objectReference: {fileID: 1450276239} + - target: {fileID: 2370856, guid: 169903cbb559e444f97e4606acc79194, type: 2} + propertyPath: m_Materials.Array.data[0] + value: + objectReference: {fileID: 2100000, guid: 5eff0f9175d0e054290206daa1eef80e, type: 2} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: 169903cbb559e444f97e4606acc79194, type: 2} + m_IsPrefabParent: 0 +--- !u!1001 &1804033521 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 11493774, guid: 5c40413500bcaa84f884e9834bc27ec9, type: 2} + propertyPath: charsToAvoid.Array.size + value: 2 + objectReference: {fileID: 0} + - target: {fileID: 491568, guid: 5c40413500bcaa84f884e9834bc27ec9, type: 2} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 491568, guid: 5c40413500bcaa84f884e9834bc27ec9, type: 2} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 491568, guid: 5c40413500bcaa84f884e9834bc27ec9, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 491568, guid: 5c40413500bcaa84f884e9834bc27ec9, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 491568, guid: 5c40413500bcaa84f884e9834bc27ec9, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 491568, guid: 5c40413500bcaa84f884e9834bc27ec9, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 491568, guid: 5c40413500bcaa84f884e9834bc27ec9, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 491568, guid: 5c40413500bcaa84f884e9834bc27ec9, type: 2} + propertyPath: m_RootOrder + value: 3 + objectReference: {fileID: 0} + - target: {fileID: 11493774, guid: 5c40413500bcaa84f884e9834bc27ec9, type: 2} + propertyPath: charsToAvoid.Array.data[0] + value: + objectReference: {fileID: 69819901} + - target: {fileID: 11493774, guid: 5c40413500bcaa84f884e9834bc27ec9, type: 2} + propertyPath: charsToAvoid.Array.data[1] + value: + objectReference: {fileID: 1049882220} + - target: {fileID: 105404, guid: 5c40413500bcaa84f884e9834bc27ec9, type: 2} + propertyPath: m_Name + value: ObstacleSpawner + objectReference: {fileID: 0} + - target: {fileID: 11493774, guid: 5c40413500bcaa84f884e9834bc27ec9, type: 2} + propertyPath: obj + value: + objectReference: {fileID: 415264, guid: 42b9f0b5c3336af4eb6299b224c18f68, type: 2} + - target: {fileID: 11493774, guid: 5c40413500bcaa84f884e9834bc27ec9, type: 2} + propertyPath: objectSizeRange.y + value: 3 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: 5c40413500bcaa84f884e9834bc27ec9, type: 2} + m_IsPrefabParent: 0 +--- !u!1001 &1903373595 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 435936, guid: 169903cbb559e444f97e4606acc79194, type: 2} + propertyPath: m_LocalPosition.x + value: 2 + objectReference: {fileID: 0} + - target: {fileID: 435936, guid: 169903cbb559e444f97e4606acc79194, type: 2} + propertyPath: m_LocalPosition.y + value: -5 + objectReference: {fileID: 0} + - target: {fileID: 435936, guid: 169903cbb559e444f97e4606acc79194, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 435936, guid: 169903cbb559e444f97e4606acc79194, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 435936, guid: 169903cbb559e444f97e4606acc79194, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 435936, guid: 169903cbb559e444f97e4606acc79194, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 435936, guid: 169903cbb559e444f97e4606acc79194, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 435936, guid: 169903cbb559e444f97e4606acc79194, type: 2} + propertyPath: m_RootOrder + value: 5 + objectReference: {fileID: 0} + - target: {fileID: 11443842, guid: 169903cbb559e444f97e4606acc79194, type: 2} + propertyPath: target + value: + objectReference: {fileID: 1450276239} + - target: {fileID: 2370856, guid: 169903cbb559e444f97e4606acc79194, type: 2} + propertyPath: m_Materials.Array.data[0] + value: + objectReference: {fileID: 2100000, guid: 5eff0f9175d0e054290206daa1eef80e, type: 2} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: 169903cbb559e444f97e4606acc79194, type: 2} + m_IsPrefabParent: 0 +--- !u!1001 &1978370653 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 408412, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: m_LocalPosition.x + value: 4 + objectReference: {fileID: 0} + - target: {fileID: 408412, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: m_LocalPosition.y + value: 4 + objectReference: {fileID: 0} + - target: {fileID: 408412, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 408412, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 408412, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 408412, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 408412, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 408412, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: m_RootOrder + value: 2 + objectReference: {fileID: 0} + - target: {fileID: 11470582, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: m_Enabled + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 2364876, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + propertyPath: m_Materials.Array.data[0] + value: + objectReference: {fileID: 2100000, guid: 6f2d6f225d44e744dbbc449e44aa41fc, type: 2} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: bd1d62c70d726f34eb654e97eb3686cd, type: 2} + m_IsPrefabParent: 0 diff --git a/Assets/Examples/Hide.unity.meta b/Assets/Examples/Hide.unity.meta new file mode 100644 index 0000000..3c188c5 --- /dev/null +++ b/Assets/Examples/Hide.unity.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 74d165f473291874c8c7b957f91ba53b +timeCreated: 1445210382 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Examples/Interpose.unity b/Assets/Examples/Interpose.unity new file mode 100644 index 0000000..c80cda7 --- /dev/null +++ b/Assets/Examples/Interpose.unity @@ -0,0 +1,423 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +SceneSettings: + m_ObjectHideFlags: 0 + m_PVSData: + m_PVSObjectsArray: [] + m_PVSPortalsArray: [] + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: .25 + backfaceThreshold: 100 +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 6 + m_Fog: 0 + m_FogColor: {r: .5, g: .5, b: .5, a: 1} + m_FogMode: 3 + m_FogDensity: .00999999978 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: .211999997, g: .226999998, b: .259000003, a: 1} + m_AmbientEquatorColor: {r: .114, g: .125, b: .133000001, a: 1} + m_AmbientGroundColor: {r: .0469999984, g: .0430000015, b: .0350000001, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 0 + m_SkyboxMaterial: {fileID: 0} + m_HaloStrength: .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} +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 5 + m_GIWorkflowMode: 0 + m_LightmapsMode: 1 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_TemporalCoherenceThreshold: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 1 + m_EnableRealtimeLightmaps: 1 + m_LightmapEditorSettings: + serializedVersion: 3 + m_Resolution: 2 + m_BakeResolution: 40 + m_TextureWidth: 1024 + m_TextureHeight: 1024 + m_AOMaxDistance: 1 + m_Padding: 2 + m_CompAOExponent: 0 + m_LightmapParameters: {fileID: 0} + m_TextureCompression: 1 + m_FinalGather: 0 + m_FinalGatherRayCount: 1024 + m_ReflectionCompression: 2 + m_LightmapSnapshot: {fileID: 0} + m_RuntimeCPUUsage: 25 +--- !u!196 &4 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 2 + agentRadius: .5 + agentHeight: 2 + agentSlope: 45 + agentClimb: .400000006 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + accuratePlacement: 0 + minRegionArea: 2 + cellSize: .166666672 + manualCellSize: 0 + m_NavMeshData: {fileID: 0} +--- !u!1001 &102033559 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_LocalPosition.x + value: -2.5 + objectReference: {fileID: 0} + - target: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_LocalPosition.y + value: -1.79999995 + objectReference: {fileID: 0} + - target: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_RootOrder + value: 4 + objectReference: {fileID: 0} + - target: {fileID: 163698, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_Name + value: Wander2Unit (1) + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: 11eae3e40166fd0429da122769705e13, type: 2} + m_IsPrefabParent: 0 +--- !u!54 &153756803 stripped +Rigidbody: + m_PrefabParentObject: {fileID: 5424576, guid: 11eae3e40166fd0429da122769705e13, + type: 2} + m_PrefabInternal: {fileID: 640805474} +--- !u!1 &551253050 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 4: {fileID: 551253055} + - 20: {fileID: 551253054} + - 92: {fileID: 551253053} + - 124: {fileID: 551253052} + - 81: {fileID: 551253051} + 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 &551253051 +AudioListener: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 +--- !u!124 &551253052 +Behaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 +--- !u!92 &551253053 +Behaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 +--- !u!20 &551253054 +Camera: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 2 + m_BackGroundColor: {r: .933333337, g: .933333337, b: .933333337, a: 1} + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: .300000012 + 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: 0 + m_OcclusionCulling: 1 + m_StereoConvergence: 10 + m_StereoSeparation: .0219999999 + m_StereoMirrorMode: 0 +--- !u!4 &551253055 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: -15} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 +--- !u!1001 &640805474 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_LocalPosition.x + value: 3 + objectReference: {fileID: 0} + - target: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_RootOrder + value: 3 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: 11eae3e40166fd0429da122769705e13, type: 2} + m_IsPrefabParent: 0 +--- !u!1 &735375198 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 4: {fileID: 735375200} + - 108: {fileID: 735375199} + 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 &735375199 +Light: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 735375198} + m_Enabled: 1 + serializedVersion: 6 + m_Type: 1 + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_Intensity: 1 + m_Range: 10 + m_SpotAngle: 30 + m_CookieSize: 10 + m_Shadows: + m_Type: 2 + m_Resolution: -1 + m_Strength: 1 + m_Bias: .0500000007 + m_NormalBias: .400000006 + m_Cookie: {fileID: 0} + m_DrawHalo: 0 + m_Flare: {fileID: 0} + m_RenderMode: 0 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_Lightmapping: 4 + m_BounceIntensity: 1 + m_ShadowRadius: 0 + m_ShadowAngle: 0 + m_AreaSize: {x: 1, y: 1} +--- !u!4 &735375200 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 735375198} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 3, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 1 +--- !u!1001 &1080571765 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_RootOrder + value: 4 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + m_IsPrefabParent: 0 +--- !u!54 &1096561976 stripped +Rigidbody: + m_PrefabParentObject: {fileID: 5424576, guid: 11eae3e40166fd0429da122769705e13, + type: 2} + m_PrefabInternal: {fileID: 102033559} +--- !u!1001 &1810436892 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 494964, guid: de64d63e28828754fae81e255923d00c, type: 2} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 494964, guid: de64d63e28828754fae81e255923d00c, type: 2} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 494964, guid: de64d63e28828754fae81e255923d00c, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 494964, guid: de64d63e28828754fae81e255923d00c, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 494964, guid: de64d63e28828754fae81e255923d00c, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 494964, guid: de64d63e28828754fae81e255923d00c, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 494964, guid: de64d63e28828754fae81e255923d00c, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 494964, guid: de64d63e28828754fae81e255923d00c, type: 2} + propertyPath: m_RootOrder + value: 5 + objectReference: {fileID: 0} + - target: {fileID: 11470476, guid: de64d63e28828754fae81e255923d00c, type: 2} + propertyPath: target1 + value: + objectReference: {fileID: 153756803} + - target: {fileID: 11470476, guid: de64d63e28828754fae81e255923d00c, type: 2} + propertyPath: target2 + value: + objectReference: {fileID: 1096561976} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: de64d63e28828754fae81e255923d00c, type: 2} + m_IsPrefabParent: 0 diff --git a/Assets/Examples/Interpose.unity.meta b/Assets/Examples/Interpose.unity.meta new file mode 100644 index 0000000..a4a7059 --- /dev/null +++ b/Assets/Examples/Interpose.unity.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 67df6bafc8996dc4f97f892bb0daf6ed +timeCreated: 1445204252 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Examples/OffsetPursuit.unity b/Assets/Examples/OffsetPursuit.unity new file mode 100644 index 0000000..6205f88 --- /dev/null +++ b/Assets/Examples/OffsetPursuit.unity @@ -0,0 +1,657 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +SceneSettings: + m_ObjectHideFlags: 0 + m_PVSData: + m_PVSObjectsArray: [] + m_PVSPortalsArray: [] + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: .25 + backfaceThreshold: 100 +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 6 + m_Fog: 0 + m_FogColor: {r: .5, g: .5, b: .5, a: 1} + m_FogMode: 3 + m_FogDensity: .00999999978 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: .211999997, g: .226999998, b: .259000003, a: 1} + m_AmbientEquatorColor: {r: .114, g: .125, b: .133000001, a: 1} + m_AmbientGroundColor: {r: .0469999984, g: .0430000015, b: .0350000001, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 0 + m_SkyboxMaterial: {fileID: 0} + m_HaloStrength: .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} +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 5 + m_GIWorkflowMode: 0 + m_LightmapsMode: 1 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_TemporalCoherenceThreshold: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 1 + m_EnableRealtimeLightmaps: 1 + m_LightmapEditorSettings: + serializedVersion: 3 + m_Resolution: 2 + m_BakeResolution: 40 + m_TextureWidth: 1024 + m_TextureHeight: 1024 + m_AOMaxDistance: 1 + m_Padding: 2 + m_CompAOExponent: 0 + m_LightmapParameters: {fileID: 0} + m_TextureCompression: 1 + m_FinalGather: 0 + m_FinalGatherRayCount: 1024 + m_ReflectionCompression: 2 + m_LightmapSnapshot: {fileID: 0} + m_RuntimeCPUUsage: 25 +--- !u!196 &4 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 2 + agentRadius: .5 + agentHeight: 2 + agentSlope: 45 + agentClimb: .400000006 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + accuratePlacement: 0 + minRegionArea: 2 + cellSize: .166666672 + manualCellSize: 0 + m_NavMeshData: {fileID: 0} +--- !u!1 &551253050 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 4: {fileID: 551253055} + - 20: {fileID: 551253054} + - 92: {fileID: 551253053} + - 124: {fileID: 551253052} + - 81: {fileID: 551253051} + - 114: {fileID: 551253056} + - 114: {fileID: 551253057} + 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 &551253051 +AudioListener: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 +--- !u!124 &551253052 +Behaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 +--- !u!92 &551253053 +Behaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 +--- !u!20 &551253054 +Camera: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 2 + m_BackGroundColor: {r: .933333337, g: .933333337, b: .933333337, a: 1} + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: .300000012 + 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: 0 + m_OcclusionCulling: 1 + m_StereoConvergence: 10 + m_StereoSeparation: .0219999999 + m_StereoMirrorMode: 0 +--- !u!4 &551253055 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: -15} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 +--- !u!114 &551253056 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 770499eb59bf16e40babd2e41f691bda, type: 3} + m_Name: + m_EditorClassIdentifier: + show: 1 + cellSize: 1 + zPosition: 0 + lineMat: {fileID: 2100000, guid: 68454679857835641ae4595960001fbf, type: 2} +--- !u!114 &551253057 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 49346cc1dafa05c429a4659d89e3a1f6, type: 3} + m_Name: + m_EditorClassIdentifier: + target: {fileID: 757470802} +--- !u!54 &600780046 stripped +Rigidbody: + m_PrefabParentObject: {fileID: 5424576, guid: 11eae3e40166fd0429da122769705e13, + type: 2} + m_PrefabInternal: {fileID: 640805474} +--- !u!1001 &609579693 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 438550, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: m_LocalPosition.x + value: -1.27999997 + objectReference: {fileID: 0} + - target: {fileID: 438550, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: m_LocalPosition.y + value: -.779999971 + objectReference: {fileID: 0} + - target: {fileID: 438550, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 438550, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 438550, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 438550, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 438550, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 438550, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: m_RootOrder + value: 6 + objectReference: {fileID: 0} + - target: {fileID: 152688, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: m_Name + value: OffsetPursuitUnit (2) + objectReference: {fileID: 0} + - target: {fileID: 11461530, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: target + value: + objectReference: {fileID: 600780046} + - target: {fileID: 11461530, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: offset.x + value: -1.20000005 + objectReference: {fileID: 0} + - target: {fileID: 11461530, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: offset.y + value: 1.20000005 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + m_IsPrefabParent: 0 +--- !u!1001 &640805474 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_RootOrder + value: 3 + objectReference: {fileID: 0} + - target: {fileID: 2332060, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_Materials.Array.data[0] + value: + objectReference: {fileID: 2100000, guid: 6f2d6f225d44e744dbbc449e44aa41fc, type: 2} + - target: {fileID: 11457380, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: maxVelocity + value: 3 + objectReference: {fileID: 0} + - target: {fileID: 11481402, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_Enabled + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5424576, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_Constraints + value: 120 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: 11eae3e40166fd0429da122769705e13, type: 2} + m_IsPrefabParent: 0 +--- !u!1 &735375198 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 4: {fileID: 735375200} + - 108: {fileID: 735375199} + 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 &735375199 +Light: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 735375198} + m_Enabled: 1 + serializedVersion: 6 + m_Type: 1 + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_Intensity: 1 + m_Range: 10 + m_SpotAngle: 30 + m_CookieSize: 10 + m_Shadows: + m_Type: 2 + m_Resolution: -1 + m_Strength: 1 + m_Bias: .0500000007 + m_NormalBias: .400000006 + m_Cookie: {fileID: 0} + m_DrawHalo: 0 + m_Flare: {fileID: 0} + m_RenderMode: 0 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_Lightmapping: 4 + m_BounceIntensity: 1 + m_ShadowRadius: 0 + m_ShadowAngle: 0 + m_AreaSize: {x: 1, y: 1} +--- !u!4 &735375200 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 735375198} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 3, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 1 +--- !u!1001 &747903351 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 438550, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: m_LocalPosition.x + value: -2.53999996 + objectReference: {fileID: 0} + - target: {fileID: 438550, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: m_LocalPosition.y + value: -2.26999998 + objectReference: {fileID: 0} + - target: {fileID: 438550, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 438550, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 438550, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 438550, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 438550, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 438550, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: m_RootOrder + value: 4 + objectReference: {fileID: 0} + - target: {fileID: 11461530, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: target + value: + objectReference: {fileID: 600780046} + - target: {fileID: 11461530, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: offset.x + value: -.600000024 + objectReference: {fileID: 0} + - target: {fileID: 11461530, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: offset.y + value: .600000024 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + m_IsPrefabParent: 0 +--- !u!4 &757470802 stripped +Transform: + m_PrefabParentObject: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + m_PrefabInternal: {fileID: 640805474} +--- !u!1001 &791490160 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 438550, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: m_LocalPosition.x + value: -4.19000006 + objectReference: {fileID: 0} + - target: {fileID: 438550, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: m_LocalPosition.y + value: -.360000014 + objectReference: {fileID: 0} + - target: {fileID: 438550, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 438550, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 438550, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 438550, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 438550, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 438550, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: m_RootOrder + value: 7 + objectReference: {fileID: 0} + - target: {fileID: 152688, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: m_Name + value: OffsetPursuitUnit (3) + objectReference: {fileID: 0} + - target: {fileID: 11461530, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: target + value: + objectReference: {fileID: 600780046} + - target: {fileID: 11461530, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: offset.x + value: -1.20000005 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + m_IsPrefabParent: 0 +--- !u!1001 &824940893 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 438550, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: m_LocalPosition.x + value: -3.5999999 + objectReference: {fileID: 0} + - target: {fileID: 438550, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: m_LocalPosition.y + value: 1.00999999 + objectReference: {fileID: 0} + - target: {fileID: 438550, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 438550, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 438550, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 438550, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 438550, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 438550, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: m_RootOrder + value: 5 + objectReference: {fileID: 0} + - target: {fileID: 152688, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: m_Name + value: OffsetPursuitUnit (1) + objectReference: {fileID: 0} + - target: {fileID: 11461530, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: target + value: + objectReference: {fileID: 600780046} + - target: {fileID: 11461530, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: offset.x + value: -.600000024 + objectReference: {fileID: 0} + - target: {fileID: 11461530, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: offset.y + value: -.600000024 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + m_IsPrefabParent: 0 +--- !u!1001 &1080571765 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_RootOrder + value: 3 + objectReference: {fileID: 0} + - target: {fileID: 160320, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_IsActive + value: 0 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + m_IsPrefabParent: 0 +--- !u!1001 &1617110129 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 438550, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: m_LocalPosition.x + value: -1.64999998 + objectReference: {fileID: 0} + - target: {fileID: 438550, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: m_LocalPosition.y + value: 2.27999997 + objectReference: {fileID: 0} + - target: {fileID: 438550, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 438550, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 438550, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 438550, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 438550, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 438550, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: m_RootOrder + value: 8 + objectReference: {fileID: 0} + - target: {fileID: 152688, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: m_Name + value: OffsetPursuitUnit (4) + objectReference: {fileID: 0} + - target: {fileID: 11461530, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: target + value: + objectReference: {fileID: 600780046} + - target: {fileID: 11461530, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: offset.x + value: -1.20000005 + objectReference: {fileID: 0} + - target: {fileID: 11461530, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + propertyPath: offset.y + value: -1.20000005 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: 85f9ae2daa0efae42a9814c8de2d0d2d, type: 2} + m_IsPrefabParent: 0 diff --git a/Assets/Examples/OffsetPursuit.unity.meta b/Assets/Examples/OffsetPursuit.unity.meta new file mode 100644 index 0000000..dafe9e1 --- /dev/null +++ b/Assets/Examples/OffsetPursuit.unity.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d792e3cf59999a64db71abaeef39eecd +timeCreated: 1445384586 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Examples/Pursue.unity b/Assets/Examples/Pursue.unity new file mode 100644 index 0000000..b99dcb3 --- /dev/null +++ b/Assets/Examples/Pursue.unity @@ -0,0 +1,368 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +SceneSettings: + m_ObjectHideFlags: 0 + m_PVSData: + m_PVSObjectsArray: [] + m_PVSPortalsArray: [] + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: .25 + backfaceThreshold: 100 +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 6 + m_Fog: 0 + m_FogColor: {r: .5, g: .5, b: .5, a: 1} + m_FogMode: 3 + m_FogDensity: .00999999978 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: .211999997, g: .226999998, b: .259000003, a: 1} + m_AmbientEquatorColor: {r: .114, g: .125, b: .133000001, a: 1} + m_AmbientGroundColor: {r: .0469999984, g: .0430000015, b: .0350000001, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 0 + m_SkyboxMaterial: {fileID: 0} + m_HaloStrength: .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} +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 5 + m_GIWorkflowMode: 0 + m_LightmapsMode: 1 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_TemporalCoherenceThreshold: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 1 + m_EnableRealtimeLightmaps: 1 + m_LightmapEditorSettings: + serializedVersion: 3 + m_Resolution: 2 + m_BakeResolution: 40 + m_TextureWidth: 1024 + m_TextureHeight: 1024 + m_AOMaxDistance: 1 + m_Padding: 2 + m_CompAOExponent: 0 + m_LightmapParameters: {fileID: 0} + m_TextureCompression: 1 + m_FinalGather: 0 + m_FinalGatherRayCount: 1024 + m_ReflectionCompression: 2 + m_LightmapSnapshot: {fileID: 0} + m_RuntimeCPUUsage: 25 +--- !u!196 &4 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 2 + agentRadius: .5 + agentHeight: 2 + agentSlope: 45 + agentClimb: .400000006 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + accuratePlacement: 0 + minRegionArea: 2 + cellSize: .166666672 + manualCellSize: 0 + m_NavMeshData: {fileID: 0} +--- !u!1 &551253050 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 4: {fileID: 551253055} + - 20: {fileID: 551253054} + - 92: {fileID: 551253053} + - 124: {fileID: 551253052} + - 81: {fileID: 551253051} + 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 &551253051 +AudioListener: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 +--- !u!124 &551253052 +Behaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 +--- !u!92 &551253053 +Behaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 +--- !u!20 &551253054 +Camera: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 2 + m_BackGroundColor: {r: .933333337, g: .933333337, b: .933333337, a: 1} + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: .300000012 + 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: 0 + m_OcclusionCulling: 1 + m_StereoConvergence: 10 + m_StereoSeparation: .0219999999 + m_StereoMirrorMode: 0 +--- !u!4 &551253055 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: -15} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 +--- !u!54 &600780046 stripped +Rigidbody: + m_PrefabParentObject: {fileID: 5424576, guid: 11eae3e40166fd0429da122769705e13, + type: 2} + m_PrefabInternal: {fileID: 640805474} +--- !u!1001 &640805474 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_LocalPosition.x + value: 3 + objectReference: {fileID: 0} + - target: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_RootOrder + value: 3 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: 11eae3e40166fd0429da122769705e13, type: 2} + m_IsPrefabParent: 0 +--- !u!1 &735375198 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 4: {fileID: 735375200} + - 108: {fileID: 735375199} + 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 &735375199 +Light: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 735375198} + m_Enabled: 1 + serializedVersion: 6 + m_Type: 1 + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_Intensity: 1 + m_Range: 10 + m_SpotAngle: 30 + m_CookieSize: 10 + m_Shadows: + m_Type: 2 + m_Resolution: -1 + m_Strength: 1 + m_Bias: .0500000007 + m_NormalBias: .400000006 + m_Cookie: {fileID: 0} + m_DrawHalo: 0 + m_Flare: {fileID: 0} + m_RenderMode: 0 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_Lightmapping: 4 + m_BounceIntensity: 1 + m_ShadowRadius: 0 + m_ShadowAngle: 0 + m_AreaSize: {x: 1, y: 1} +--- !u!4 &735375200 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 735375198} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 3, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 1 +--- !u!1001 &895139053 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 442860, guid: 877167d1f91274a4281ed4fe9864c393, type: 2} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 442860, guid: 877167d1f91274a4281ed4fe9864c393, type: 2} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 442860, guid: 877167d1f91274a4281ed4fe9864c393, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 442860, guid: 877167d1f91274a4281ed4fe9864c393, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 442860, guid: 877167d1f91274a4281ed4fe9864c393, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 442860, guid: 877167d1f91274a4281ed4fe9864c393, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 442860, guid: 877167d1f91274a4281ed4fe9864c393, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 442860, guid: 877167d1f91274a4281ed4fe9864c393, type: 2} + propertyPath: m_RootOrder + value: 2 + objectReference: {fileID: 0} + - target: {fileID: 11432080, guid: 877167d1f91274a4281ed4fe9864c393, type: 2} + propertyPath: target + value: + objectReference: {fileID: 600780046} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: 877167d1f91274a4281ed4fe9864c393, type: 2} + m_IsPrefabParent: 0 +--- !u!1001 &1080571765 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_RootOrder + value: 4 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + m_IsPrefabParent: 0 diff --git a/Assets/Examples/Pursue.unity.meta b/Assets/Examples/Pursue.unity.meta new file mode 100644 index 0000000..17e7476 --- /dev/null +++ b/Assets/Examples/Pursue.unity.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 6cb70af36da7fb94887e1f4adfcb3daa +timeCreated: 1445138288 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Examples/Seek.unity b/Assets/Examples/Seek.unity new file mode 100644 index 0000000..f459d81 --- /dev/null +++ b/Assets/Examples/Seek.unity @@ -0,0 +1,367 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +SceneSettings: + m_ObjectHideFlags: 0 + m_PVSData: + m_PVSObjectsArray: [] + m_PVSPortalsArray: [] + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: .25 + backfaceThreshold: 100 +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 6 + m_Fog: 0 + m_FogColor: {r: .5, g: .5, b: .5, a: 1} + m_FogMode: 3 + m_FogDensity: .00999999978 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: .211999997, g: .226999998, b: .259000003, a: 1} + m_AmbientEquatorColor: {r: .114, g: .125, b: .133000001, a: 1} + m_AmbientGroundColor: {r: .0469999984, g: .0430000015, b: .0350000001, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 0 + m_SkyboxMaterial: {fileID: 0} + m_HaloStrength: .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} +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 5 + m_GIWorkflowMode: 0 + m_LightmapsMode: 1 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_TemporalCoherenceThreshold: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 1 + m_EnableRealtimeLightmaps: 1 + m_LightmapEditorSettings: + serializedVersion: 3 + m_Resolution: 2 + m_BakeResolution: 40 + m_TextureWidth: 1024 + m_TextureHeight: 1024 + m_AOMaxDistance: 1 + m_Padding: 2 + m_CompAOExponent: 0 + m_LightmapParameters: {fileID: 0} + m_TextureCompression: 1 + m_FinalGather: 0 + m_FinalGatherRayCount: 1024 + m_ReflectionCompression: 2 + m_LightmapSnapshot: {fileID: 0} + m_RuntimeCPUUsage: 25 +--- !u!196 &4 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 2 + agentRadius: .5 + agentHeight: 2 + agentSlope: 45 + agentClimb: .400000006 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + accuratePlacement: 0 + minRegionArea: 2 + cellSize: .166666672 + manualCellSize: 0 + m_NavMeshData: {fileID: 0} +--- !u!1001 &541513073 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 469634, guid: 500699f3ba0b7f0438e50d52a0fb3691, type: 2} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 469634, guid: 500699f3ba0b7f0438e50d52a0fb3691, type: 2} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 469634, guid: 500699f3ba0b7f0438e50d52a0fb3691, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 469634, guid: 500699f3ba0b7f0438e50d52a0fb3691, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 469634, guid: 500699f3ba0b7f0438e50d52a0fb3691, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 469634, guid: 500699f3ba0b7f0438e50d52a0fb3691, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 469634, guid: 500699f3ba0b7f0438e50d52a0fb3691, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 469634, guid: 500699f3ba0b7f0438e50d52a0fb3691, type: 2} + propertyPath: m_RootOrder + value: 2 + objectReference: {fileID: 0} + - target: {fileID: 11418928, guid: 500699f3ba0b7f0438e50d52a0fb3691, type: 2} + propertyPath: target + value: + objectReference: {fileID: 1670659230} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: 500699f3ba0b7f0438e50d52a0fb3691, type: 2} + m_IsPrefabParent: 0 +--- !u!1 &551253050 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 4: {fileID: 551253055} + - 20: {fileID: 551253054} + - 92: {fileID: 551253053} + - 124: {fileID: 551253052} + - 81: {fileID: 551253051} + 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 &551253051 +AudioListener: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 +--- !u!124 &551253052 +Behaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 +--- !u!92 &551253053 +Behaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 +--- !u!20 &551253054 +Camera: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 2 + m_BackGroundColor: {r: .933333337, g: .933333337, b: .933333337, a: 1} + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: .300000012 + 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: 0 + m_OcclusionCulling: 1 + m_StereoConvergence: 10 + m_StereoSeparation: .0219999999 + m_StereoMirrorMode: 0 +--- !u!4 &551253055 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: -15} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 +--- !u!1001 &640805474 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_LocalPosition.x + value: 3 + objectReference: {fileID: 0} + - target: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_RootOrder + value: 3 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: 11eae3e40166fd0429da122769705e13, type: 2} + m_IsPrefabParent: 0 +--- !u!1 &735375198 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 4: {fileID: 735375200} + - 108: {fileID: 735375199} + 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 &735375199 +Light: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 735375198} + m_Enabled: 1 + serializedVersion: 6 + m_Type: 1 + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_Intensity: 1 + m_Range: 10 + m_SpotAngle: 30 + m_CookieSize: 10 + m_Shadows: + m_Type: 2 + m_Resolution: -1 + m_Strength: 1 + m_Bias: .0500000007 + m_NormalBias: .400000006 + m_Cookie: {fileID: 0} + m_DrawHalo: 0 + m_Flare: {fileID: 0} + m_RenderMode: 0 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_Lightmapping: 4 + m_BounceIntensity: 1 + m_ShadowRadius: 0 + m_ShadowAngle: 0 + m_AreaSize: {x: 1, y: 1} +--- !u!4 &735375200 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 735375198} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 3, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 1 +--- !u!1001 &1080571765 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_RootOrder + value: 4 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + m_IsPrefabParent: 0 +--- !u!4 &1670659230 stripped +Transform: + m_PrefabParentObject: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + m_PrefabInternal: {fileID: 640805474} diff --git a/Assets/Examples/Seek.unity.meta b/Assets/Examples/Seek.unity.meta new file mode 100644 index 0000000..51b69a8 --- /dev/null +++ b/Assets/Examples/Seek.unity.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ca5d059be05447b40b29102013ff0048 +timeCreated: 1445140791 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Examples/WallAvoidance1.unity b/Assets/Examples/WallAvoidance1.unity new file mode 100644 index 0000000..cb819b2 --- /dev/null +++ b/Assets/Examples/WallAvoidance1.unity @@ -0,0 +1,421 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +SceneSettings: + m_ObjectHideFlags: 0 + m_PVSData: + m_PVSObjectsArray: [] + m_PVSPortalsArray: [] + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: .25 + backfaceThreshold: 100 +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 6 + m_Fog: 0 + m_FogColor: {r: .5, g: .5, b: .5, a: 1} + m_FogMode: 3 + m_FogDensity: .00999999978 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: .211999997, g: .226999998, b: .259000003, a: 1} + m_AmbientEquatorColor: {r: .114, g: .125, b: .133000001, a: 1} + m_AmbientGroundColor: {r: .0469999984, g: .0430000015, b: .0350000001, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 0 + m_SkyboxMaterial: {fileID: 0} + m_HaloStrength: .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} +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 5 + m_GIWorkflowMode: 0 + m_LightmapsMode: 1 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_TemporalCoherenceThreshold: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 1 + m_EnableRealtimeLightmaps: 1 + m_LightmapEditorSettings: + serializedVersion: 3 + m_Resolution: 2 + m_BakeResolution: 40 + m_TextureWidth: 1024 + m_TextureHeight: 1024 + m_AOMaxDistance: 1 + m_Padding: 2 + m_CompAOExponent: 0 + m_LightmapParameters: {fileID: 0} + m_TextureCompression: 1 + m_FinalGather: 0 + m_FinalGatherRayCount: 1024 + m_ReflectionCompression: 2 + m_LightmapSnapshot: {fileID: 0} + m_RuntimeCPUUsage: 25 +--- !u!196 &4 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 2 + agentRadius: .5 + agentHeight: 2 + agentSlope: 45 + agentClimb: .400000006 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + accuratePlacement: 0 + minRegionArea: 2 + cellSize: .166666672 + manualCellSize: 0 + m_NavMeshData: {fileID: 0} +--- !u!1001 &1376305553 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 490436, guid: 3356bb3bf08034540bdb1c85eba417e0, type: 2} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 490436, guid: 3356bb3bf08034540bdb1c85eba417e0, type: 2} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 490436, guid: 3356bb3bf08034540bdb1c85eba417e0, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 490436, guid: 3356bb3bf08034540bdb1c85eba417e0, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 490436, guid: 3356bb3bf08034540bdb1c85eba417e0, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 490436, guid: 3356bb3bf08034540bdb1c85eba417e0, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 490436, guid: 3356bb3bf08034540bdb1c85eba417e0, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 490436, guid: 3356bb3bf08034540bdb1c85eba417e0, type: 2} + propertyPath: m_RootOrder + value: 2 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: 3356bb3bf08034540bdb1c85eba417e0, type: 2} + m_IsPrefabParent: 0 +--- !u!1 &1770636607 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 4: {fileID: 1770636609} + - 108: {fileID: 1770636608} + 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 &1770636608 +Light: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1770636607} + m_Enabled: 1 + serializedVersion: 6 + m_Type: 1 + m_Color: {r: .839215696, g: .839215696, b: .839215696, a: 1} + m_Intensity: 1 + m_Range: 10 + m_SpotAngle: 30 + m_CookieSize: 10 + m_Shadows: + m_Type: 0 + m_Resolution: -1 + m_Strength: 1 + m_Bias: .0500000007 + m_NormalBias: .400000006 + m_Cookie: {fileID: 0} + m_DrawHalo: 0 + m_Flare: {fileID: 0} + m_RenderMode: 0 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_Lightmapping: 4 + m_BounceIntensity: 1 + m_ShadowRadius: 0 + m_ShadowAngle: 0 + m_AreaSize: {x: 1, y: 1} +--- !u!4 &1770636609 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1770636607} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 3, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 1 +--- !u!1 &2073609297 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 4: {fileID: 2073609301} + - 33: {fileID: 2073609300} + - 65: {fileID: 2073609299} + - 23: {fileID: 2073609298} + m_Layer: 0 + m_Name: Wall1 + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!23 &2073609298 +MeshRenderer: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 2073609297} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_Materials: + - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} + m_SubsetIndices: + m_StaticBatchRoot: {fileID: 0} + m_UseLightProbes: 1 + m_ReflectionProbeUsage: 1 + m_ProbeAnchor: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 1 + m_ImportantGI: 0 + m_AutoUVMaxDistance: .5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingOrder: 0 +--- !u!65 &2073609299 +BoxCollider: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 2073609297} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!33 &2073609300 +MeshFilter: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 2073609297} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!4 &2073609301 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 2073609297} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: -.119999997, y: 2.24000001, z: 0} + m_LocalScale: {x: 4, y: .200000003, z: .25} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 3 +--- !u!1 &2143586458 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 4: {fileID: 2143586463} + - 20: {fileID: 2143586462} + - 92: {fileID: 2143586461} + - 124: {fileID: 2143586460} + - 81: {fileID: 2143586459} + 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 &2143586459 +AudioListener: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 2143586458} + m_Enabled: 1 +--- !u!124 &2143586460 +Behaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 2143586458} + m_Enabled: 1 +--- !u!92 &2143586461 +Behaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 2143586458} + m_Enabled: 1 +--- !u!20 &2143586462 +Camera: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 2143586458} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 2 + m_BackGroundColor: {r: .933333337, g: .933333337, b: .933333337, a: 1} + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: .300000012 + 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: 0 + m_OcclusionCulling: 1 + m_StereoConvergence: 10 + m_StereoSeparation: .0219999999 + m_StereoMirrorMode: 0 +--- !u!4 &2143586463 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 2143586458} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 1, z: -10} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 +--- !u!1 &2145718230 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 4: {fileID: 2145718234} + - 33: {fileID: 2145718233} + - 65: {fileID: 2145718232} + - 23: {fileID: 2145718231} + m_Layer: 0 + m_Name: Wall2 + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!23 &2145718231 +MeshRenderer: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 2145718230} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_Materials: + - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} + m_SubsetIndices: + m_StaticBatchRoot: {fileID: 0} + m_UseLightProbes: 1 + m_ReflectionProbeUsage: 1 + m_ProbeAnchor: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 1 + m_ImportantGI: 0 + m_AutoUVMaxDistance: .5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingOrder: 0 +--- !u!65 &2145718232 +BoxCollider: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 2145718230} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!33 &2145718233 +MeshFilter: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 2145718230} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!4 &2145718234 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 2145718230} + m_LocalRotation: {x: 0, y: 0, z: -.297531337, w: -.954712093} + m_LocalPosition: {x: -3.70910001, y: 1.12150002, z: 0} + m_LocalScale: {x: 4, y: .200000003, z: .25} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 4 diff --git a/Assets/Examples/WallAvoidance1.unity.meta b/Assets/Examples/WallAvoidance1.unity.meta new file mode 100644 index 0000000..0416ffa --- /dev/null +++ b/Assets/Examples/WallAvoidance1.unity.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 59a8f3cb377a0564dbec58b7e73ec865 +timeCreated: 1444864391 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Examples/WallAvoidance2.unity b/Assets/Examples/WallAvoidance2.unity new file mode 100644 index 0000000..cc35818 --- /dev/null +++ b/Assets/Examples/WallAvoidance2.unity @@ -0,0 +1,433 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +SceneSettings: + m_ObjectHideFlags: 0 + m_PVSData: + m_PVSObjectsArray: [] + m_PVSPortalsArray: [] + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: .25 + backfaceThreshold: 100 +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 6 + m_Fog: 0 + m_FogColor: {r: .5, g: .5, b: .5, a: 1} + m_FogMode: 3 + m_FogDensity: .00999999978 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: .211999997, g: .226999998, b: .259000003, a: 1} + m_AmbientEquatorColor: {r: .114, g: .125, b: .133000001, a: 1} + m_AmbientGroundColor: {r: .0469999984, g: .0430000015, b: .0350000001, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 0 + m_SkyboxMaterial: {fileID: 0} + m_HaloStrength: .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} +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 5 + m_GIWorkflowMode: 0 + m_LightmapsMode: 1 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_TemporalCoherenceThreshold: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 1 + m_EnableRealtimeLightmaps: 1 + m_LightmapEditorSettings: + serializedVersion: 3 + m_Resolution: 2 + m_BakeResolution: 40 + m_TextureWidth: 1024 + m_TextureHeight: 1024 + m_AOMaxDistance: 1 + m_Padding: 2 + m_CompAOExponent: 0 + m_LightmapParameters: {fileID: 0} + m_TextureCompression: 1 + m_FinalGather: 0 + m_FinalGatherRayCount: 1024 + m_ReflectionCompression: 2 + m_LightmapSnapshot: {fileID: 0} + m_RuntimeCPUUsage: 25 +--- !u!196 &4 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 2 + agentRadius: .5 + agentHeight: 2 + agentSlope: 45 + agentClimb: .400000006 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + accuratePlacement: 0 + minRegionArea: 2 + cellSize: .166666672 + manualCellSize: 0 + m_NavMeshData: {fileID: 0} +--- !u!1 &1770636607 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 4: {fileID: 1770636609} + - 108: {fileID: 1770636608} + 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 &1770636608 +Light: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1770636607} + m_Enabled: 1 + serializedVersion: 6 + m_Type: 1 + m_Color: {r: .839215696, g: .839215696, b: .839215696, a: 1} + m_Intensity: 1 + m_Range: 10 + m_SpotAngle: 30 + m_CookieSize: 10 + m_Shadows: + m_Type: 0 + m_Resolution: -1 + m_Strength: 1 + m_Bias: .0500000007 + m_NormalBias: .400000006 + m_Cookie: {fileID: 0} + m_DrawHalo: 0 + m_Flare: {fileID: 0} + m_RenderMode: 0 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_Lightmapping: 4 + m_BounceIntensity: 1 + m_ShadowRadius: 0 + m_ShadowAngle: 0 + m_AreaSize: {x: 1, y: 1} +--- !u!4 &1770636609 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1770636607} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 3, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 1 +--- !u!1001 &1966384876 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 490436, guid: 3356bb3bf08034540bdb1c85eba417e0, type: 2} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 490436, guid: 3356bb3bf08034540bdb1c85eba417e0, type: 2} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 490436, guid: 3356bb3bf08034540bdb1c85eba417e0, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 490436, guid: 3356bb3bf08034540bdb1c85eba417e0, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 490436, guid: 3356bb3bf08034540bdb1c85eba417e0, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 490436, guid: 3356bb3bf08034540bdb1c85eba417e0, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 490436, guid: 3356bb3bf08034540bdb1c85eba417e0, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 490436, guid: 3356bb3bf08034540bdb1c85eba417e0, type: 2} + propertyPath: m_RootOrder + value: 4 + objectReference: {fileID: 0} + - target: {fileID: 11440604, guid: 3356bb3bf08034540bdb1c85eba417e0, type: 2} + propertyPath: path.nodes.Array.data[0].x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 11440604, guid: 3356bb3bf08034540bdb1c85eba417e0, type: 2} + propertyPath: path.nodes.Array.data[0].y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 11440604, guid: 3356bb3bf08034540bdb1c85eba417e0, type: 2} + propertyPath: path.nodes.Array.data[1].x + value: 3.5 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: 3356bb3bf08034540bdb1c85eba417e0, type: 2} + m_IsPrefabParent: 0 +--- !u!1 &2073609297 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 4: {fileID: 2073609301} + - 33: {fileID: 2073609300} + - 65: {fileID: 2073609299} + - 23: {fileID: 2073609298} + m_Layer: 0 + m_Name: Wall1 + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!23 &2073609298 +MeshRenderer: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 2073609297} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_Materials: + - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} + m_SubsetIndices: + m_StaticBatchRoot: {fileID: 0} + m_UseLightProbes: 1 + m_ReflectionProbeUsage: 1 + m_ProbeAnchor: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 1 + m_ImportantGI: 0 + m_AutoUVMaxDistance: .5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingOrder: 0 +--- !u!65 &2073609299 +BoxCollider: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 2073609297} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!33 &2073609300 +MeshFilter: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 2073609297} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!4 &2073609301 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 2073609297} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 4, y: 2, z: 0} + m_LocalScale: {x: 4, y: .200000003, z: .25} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 2 +--- !u!1 &2143586458 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 4: {fileID: 2143586463} + - 20: {fileID: 2143586462} + - 92: {fileID: 2143586461} + - 124: {fileID: 2143586460} + - 81: {fileID: 2143586459} + 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 &2143586459 +AudioListener: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 2143586458} + m_Enabled: 1 +--- !u!124 &2143586460 +Behaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 2143586458} + m_Enabled: 1 +--- !u!92 &2143586461 +Behaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 2143586458} + m_Enabled: 1 +--- !u!20 &2143586462 +Camera: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 2143586458} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 2 + m_BackGroundColor: {r: .933333337, g: .933333337, b: .933333337, a: 1} + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: .300000012 + 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: 0 + m_OcclusionCulling: 1 + m_StereoConvergence: 10 + m_StereoSeparation: .0219999999 + m_StereoMirrorMode: 0 +--- !u!4 &2143586463 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 2143586458} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 1, z: -10} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 +--- !u!1 &2145718230 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 4: {fileID: 2145718234} + - 33: {fileID: 2145718233} + - 65: {fileID: 2145718232} + - 23: {fileID: 2145718231} + m_Layer: 0 + m_Name: Wall2 + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!23 &2145718231 +MeshRenderer: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 2145718230} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_Materials: + - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} + m_SubsetIndices: + m_StaticBatchRoot: {fileID: 0} + m_UseLightProbes: 1 + m_ReflectionProbeUsage: 1 + m_ProbeAnchor: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 1 + m_ImportantGI: 0 + m_AutoUVMaxDistance: .5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingOrder: 0 +--- !u!65 &2145718232 +BoxCollider: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 2145718230} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!33 &2145718233 +MeshFilter: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 2145718230} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!4 &2145718234 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 2145718230} + m_LocalRotation: {x: 0, y: 0, z: .707106829, w: .707106709} + m_LocalPosition: {x: 2, y: 3.9000001, z: 0} + m_LocalScale: {x: 4, y: .200000003, z: .25} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 3 diff --git a/Assets/Examples/WallAvoidance2.unity.meta b/Assets/Examples/WallAvoidance2.unity.meta new file mode 100644 index 0000000..26b99ff --- /dev/null +++ b/Assets/Examples/WallAvoidance2.unity.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b0b1ed83d0bf0654b82c4cb0900df249 +timeCreated: 1445032162 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Examples/Wander.unity b/Assets/Examples/Wander.unity new file mode 100644 index 0000000..4b8e03f --- /dev/null +++ b/Assets/Examples/Wander.unity @@ -0,0 +1,359 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +SceneSettings: + m_ObjectHideFlags: 0 + m_PVSData: + m_PVSObjectsArray: [] + m_PVSPortalsArray: [] + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: .25 + backfaceThreshold: 100 +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 6 + m_Fog: 0 + m_FogColor: {r: .5, g: .5, b: .5, a: 1} + m_FogMode: 3 + m_FogDensity: .00999999978 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: .211999997, g: .226999998, b: .259000003, a: 1} + m_AmbientEquatorColor: {r: .114, g: .125, b: .133000001, a: 1} + m_AmbientGroundColor: {r: .0469999984, g: .0430000015, b: .0350000001, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 0 + m_SkyboxMaterial: {fileID: 0} + m_HaloStrength: .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} +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 5 + m_GIWorkflowMode: 0 + m_LightmapsMode: 1 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_TemporalCoherenceThreshold: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 1 + m_EnableRealtimeLightmaps: 1 + m_LightmapEditorSettings: + serializedVersion: 3 + m_Resolution: 2 + m_BakeResolution: 40 + m_TextureWidth: 1024 + m_TextureHeight: 1024 + m_AOMaxDistance: 1 + m_Padding: 2 + m_CompAOExponent: 0 + m_LightmapParameters: {fileID: 0} + m_TextureCompression: 1 + m_FinalGather: 0 + m_FinalGatherRayCount: 1024 + m_ReflectionCompression: 2 + m_LightmapSnapshot: {fileID: 0} + m_RuntimeCPUUsage: 25 +--- !u!196 &4 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 2 + agentRadius: .5 + agentHeight: 2 + agentSlope: 45 + agentClimb: .400000006 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + accuratePlacement: 0 + minRegionArea: 2 + cellSize: .166666672 + manualCellSize: 0 + m_NavMeshData: {fileID: 0} +--- !u!1 &551253050 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 4: {fileID: 551253055} + - 20: {fileID: 551253054} + - 92: {fileID: 551253053} + - 124: {fileID: 551253052} + - 81: {fileID: 551253051} + 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 &551253051 +AudioListener: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 +--- !u!124 &551253052 +Behaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 +--- !u!92 &551253053 +Behaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 +--- !u!20 &551253054 +Camera: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 2 + m_BackGroundColor: {r: .933333337, g: .933333337, b: .933333337, a: 1} + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: .300000012 + 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: 0 + m_OcclusionCulling: 1 + m_StereoConvergence: 10 + m_StereoSeparation: .0219999999 + m_StereoMirrorMode: 0 +--- !u!4 &551253055 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 551253050} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: -15} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 +--- !u!1001 &640805474 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_LocalPosition.x + value: 3 + objectReference: {fileID: 0} + - target: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 486792, guid: 11eae3e40166fd0429da122769705e13, type: 2} + propertyPath: m_RootOrder + value: 3 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: 11eae3e40166fd0429da122769705e13, type: 2} + m_IsPrefabParent: 0 +--- !u!1 &735375198 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 4: {fileID: 735375200} + - 108: {fileID: 735375199} + 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 &735375199 +Light: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 735375198} + m_Enabled: 1 + serializedVersion: 6 + m_Type: 1 + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_Intensity: 1 + m_Range: 10 + m_SpotAngle: 30 + m_CookieSize: 10 + m_Shadows: + m_Type: 2 + m_Resolution: -1 + m_Strength: 1 + m_Bias: .0500000007 + m_NormalBias: .400000006 + m_Cookie: {fileID: 0} + m_DrawHalo: 0 + m_Flare: {fileID: 0} + m_RenderMode: 0 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_Lightmapping: 4 + m_BounceIntensity: 1 + m_ShadowRadius: 0 + m_ShadowAngle: 0 + m_AreaSize: {x: 1, y: 1} +--- !u!4 &735375200 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 735375198} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 3, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 1 +--- !u!1001 &948851442 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 499076, guid: 646771f426c6db7489d21b5d19614acd, type: 2} + propertyPath: m_LocalPosition.x + value: -3 + objectReference: {fileID: 0} + - target: {fileID: 499076, guid: 646771f426c6db7489d21b5d19614acd, type: 2} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 499076, guid: 646771f426c6db7489d21b5d19614acd, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 499076, guid: 646771f426c6db7489d21b5d19614acd, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 499076, guid: 646771f426c6db7489d21b5d19614acd, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 499076, guid: 646771f426c6db7489d21b5d19614acd, type: 2} + propertyPath: m_LocalRotation.z + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 499076, guid: 646771f426c6db7489d21b5d19614acd, type: 2} + propertyPath: m_LocalRotation.w + value: -1.62920685e-07 + objectReference: {fileID: 0} + - target: {fileID: 499076, guid: 646771f426c6db7489d21b5d19614acd, type: 2} + propertyPath: m_RootOrder + value: 2 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: 646771f426c6db7489d21b5d19614acd, type: 2} + m_IsPrefabParent: 0 +--- !u!1001 &1080571765 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 457112, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + propertyPath: m_RootOrder + value: 4 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: 2fe3f13595b05354ab1b6bd1c710d777, type: 2} + m_IsPrefabParent: 0 diff --git a/Assets/Examples/Wander.unity.meta b/Assets/Examples/Wander.unity.meta new file mode 100644 index 0000000..a7b95b1 --- /dev/null +++ b/Assets/Examples/Wander.unity.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 4fbe1f9442e6b044ab17e1da3b09b926 +timeCreated: 1445036106 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Models.meta b/Assets/Models.meta new file mode 100644 index 0000000..f7b9506 --- /dev/null +++ b/Assets/Models.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 1211219d01d31ff4e89d561924628d2f +folderAsset: yes +timeCreated: 1444774062 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Models/Materials.meta b/Assets/Models/Materials.meta new file mode 100644 index 0000000..f62e3c5 --- /dev/null +++ b/Assets/Models/Materials.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 13c72042cb219ef4c99362d22daf27c5 +folderAsset: yes +timeCreated: 1444774090 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Models/Materials/Green.mat b/Assets/Models/Materials/Green.mat new file mode 100644 index 0000000..39e00cb --- /dev/null +++ b/Assets/Models/Materials/Green.mat @@ -0,0 +1,138 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_Name: Green + m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} + m_ShaderKeywords: + m_LightmapFlags: 5 + m_CustomRenderQueue: -1 + stringTagMap: {} + m_SavedProperties: + serializedVersion: 2 + m_TexEnvs: + data: + first: + name: _MainTex + second: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + data: + first: + name: _BumpMap + second: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + data: + first: + name: _DetailNormalMap + second: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + data: + first: + name: _ParallaxMap + second: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + data: + first: + name: _OcclusionMap + second: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + data: + first: + name: _EmissionMap + second: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + data: + first: + name: _DetailMask + second: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + data: + first: + name: _DetailAlbedoMap + second: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + data: + first: + name: _MetallicGlossMap + second: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Floats: + data: + first: + name: _SrcBlend + second: 1 + data: + first: + name: _DstBlend + second: 0 + data: + first: + name: _Cutoff + second: .5 + data: + first: + name: _Parallax + second: .0199999996 + data: + first: + name: _ZWrite + second: 1 + data: + first: + name: _Glossiness + second: .5 + data: + first: + name: _BumpScale + second: 1 + data: + first: + name: _OcclusionStrength + second: 1 + data: + first: + name: _DetailNormalMapScale + second: 1 + data: + first: + name: _UVSec + second: 0 + data: + first: + name: _Mode + second: 0 + data: + first: + name: _Metallic + second: 0 + m_Colors: + data: + first: + name: _EmissionColor + second: {r: 0, g: 0, b: 0, a: 1} + data: + first: + name: _Color + second: {r: .298039228, g: .686274529, b: .313725501, a: 1} diff --git a/Assets/Models/Materials/Green.mat.meta b/Assets/Models/Materials/Green.mat.meta new file mode 100644 index 0000000..e093645 --- /dev/null +++ b/Assets/Models/Materials/Green.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 5eff0f9175d0e054290206daa1eef80e +timeCreated: 1445373227 +licenseType: Free +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Models/Materials/Lines.mat b/Assets/Models/Materials/Lines.mat new file mode 100644 index 0000000..8ba2997 --- /dev/null +++ b/Assets/Models/Materials/Lines.mat @@ -0,0 +1,23 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_Name: Lines + m_Shader: {fileID: 4800000, guid: 8ee66983680df0641839e93f4dc445f4, type: 3} + m_ShaderKeywords: + m_LightmapFlags: 5 + m_CustomRenderQueue: 2000 + stringTagMap: {} + m_SavedProperties: + serializedVersion: 2 + m_TexEnvs: {} + m_Floats: {} + m_Colors: + data: + first: + name: _Color + second: {r: 0, g: 0, b: 0, a: 1} diff --git a/Assets/Models/Materials/Lines.mat.meta b/Assets/Models/Materials/Lines.mat.meta new file mode 100644 index 0000000..e0588dd --- /dev/null +++ b/Assets/Models/Materials/Lines.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 68454679857835641ae4595960001fbf +timeCreated: 1445452144 +licenseType: Free +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Models/Materials/Lines.shader b/Assets/Models/Materials/Lines.shader new file mode 100644 index 0000000..6a97eb0 --- /dev/null +++ b/Assets/Models/Materials/Lines.shader @@ -0,0 +1,14 @@ +Shader "Lines/Colored Blended" { + Properties { _Color ("Main Color", Color) = (0, 0, 0, 1) } + + SubShader { + Pass { + Blend SrcAlpha OneMinusSrcAlpha + ZWrite Off Cull Off Fog { Mode Off } + Color[_Color] + BindChannels { + Bind "vertex", vertex Bind "color", color + } + } + } +} \ No newline at end of file diff --git a/Assets/Models/Materials/Lines.shader.meta b/Assets/Models/Materials/Lines.shader.meta new file mode 100644 index 0000000..25741e5 --- /dev/null +++ b/Assets/Models/Materials/Lines.shader.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 8ee66983680df0641839e93f4dc445f4 +timeCreated: 1445451002 +licenseType: Free +ShaderImporter: + defaultTextures: [] + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Models/Materials/Red.mat b/Assets/Models/Materials/Red.mat new file mode 100644 index 0000000..197ffcb --- /dev/null +++ b/Assets/Models/Materials/Red.mat @@ -0,0 +1,138 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_Name: Red + m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} + m_ShaderKeywords: + m_LightmapFlags: 5 + m_CustomRenderQueue: -1 + stringTagMap: {} + m_SavedProperties: + serializedVersion: 2 + m_TexEnvs: + data: + first: + name: _MainTex + second: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + data: + first: + name: _BumpMap + second: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + data: + first: + name: _DetailNormalMap + second: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + data: + first: + name: _ParallaxMap + second: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + data: + first: + name: _OcclusionMap + second: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + data: + first: + name: _EmissionMap + second: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + data: + first: + name: _DetailMask + second: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + data: + first: + name: _DetailAlbedoMap + second: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + data: + first: + name: _MetallicGlossMap + second: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Floats: + data: + first: + name: _SrcBlend + second: 1 + data: + first: + name: _DstBlend + second: 0 + data: + first: + name: _Cutoff + second: .5 + data: + first: + name: _Parallax + second: .0199999996 + data: + first: + name: _ZWrite + second: 1 + data: + first: + name: _Glossiness + second: .5 + data: + first: + name: _BumpScale + second: 1 + data: + first: + name: _OcclusionStrength + second: 1 + data: + first: + name: _DetailNormalMapScale + second: 1 + data: + first: + name: _UVSec + second: 0 + data: + first: + name: _Mode + second: 0 + data: + first: + name: _Metallic + second: 0 + m_Colors: + data: + first: + name: _EmissionColor + second: {r: 0, g: 0, b: 0, a: 1} + data: + first: + name: _Color + second: {r: .956862748, g: .262745112, b: .211764708, a: 1} diff --git a/Assets/Models/Materials/Red.mat.meta b/Assets/Models/Materials/Red.mat.meta new file mode 100644 index 0000000..d09efdd --- /dev/null +++ b/Assets/Models/Materials/Red.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 6f2d6f225d44e744dbbc449e44aa41fc +timeCreated: 1445373168 +licenseType: Free +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Models/Materials/unnamed.mat b/Assets/Models/Materials/unnamed.mat new file mode 100644 index 0000000..a533ab3 --- /dev/null +++ b/Assets/Models/Materials/unnamed.mat @@ -0,0 +1,138 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_Name: unnamed + m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} + m_ShaderKeywords: + m_LightmapFlags: 5 + m_CustomRenderQueue: -1 + stringTagMap: {} + m_SavedProperties: + serializedVersion: 2 + m_TexEnvs: + data: + first: + name: _MainTex + second: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + data: + first: + name: _BumpMap + second: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + data: + first: + name: _DetailNormalMap + second: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + data: + first: + name: _ParallaxMap + second: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + data: + first: + name: _OcclusionMap + second: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + data: + first: + name: _EmissionMap + second: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + data: + first: + name: _DetailMask + second: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + data: + first: + name: _DetailAlbedoMap + second: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + data: + first: + name: _MetallicGlossMap + second: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Floats: + data: + first: + name: _SrcBlend + second: 1 + data: + first: + name: _DstBlend + second: 0 + data: + first: + name: _Cutoff + second: .5 + data: + first: + name: _Parallax + second: .0199999996 + data: + first: + name: _ZWrite + second: 1 + data: + first: + name: _Glossiness + second: .5 + data: + first: + name: _BumpScale + second: 1 + data: + first: + name: _OcclusionStrength + second: 1 + data: + first: + name: _DetailNormalMapScale + second: 1 + data: + first: + name: _UVSec + second: 0 + data: + first: + name: _Mode + second: 0 + data: + first: + name: _Metallic + second: 0 + m_Colors: + data: + first: + name: _EmissionColor + second: {r: 0, g: 0, b: 0, a: 1} + data: + first: + name: _Color + second: {r: .800000012, g: .800000012, b: .800000012, a: 1} diff --git a/Assets/Models/Materials/unnamed.mat.meta b/Assets/Models/Materials/unnamed.mat.meta new file mode 100644 index 0000000..13f5f6b --- /dev/null +++ b/Assets/Models/Materials/unnamed.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 91a6a98d47f55e347a20c2dadf7a8b73 +timeCreated: 1444774090 +licenseType: Free +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Models/unit.blend b/Assets/Models/unit.blend new file mode 100644 index 0000000..66a8914 Binary files /dev/null and b/Assets/Models/unit.blend differ diff --git a/Assets/Models/unit.blend.meta b/Assets/Models/unit.blend.meta new file mode 100644 index 0000000..68517f4 --- /dev/null +++ b/Assets/Models/unit.blend.meta @@ -0,0 +1,78 @@ +fileFormatVersion: 2 +guid: fb79ccf0fd6eb084587be081e0c6ddac +timeCreated: 1444774090 +licenseType: Free +ModelImporter: + serializedVersion: 18 + fileIDToRecycleName: + 100000: //RootNode + 400000: //RootNode + 2300000: //RootNode + 3300000: //RootNode + 4300000: Sphere + 7400000: Default Take + 9500000: //RootNode + materials: + importMaterials: 1 + materialName: 0 + materialSearch: 1 + animations: + legacyGenerateAnimations: 4 + bakeSimulation: 0 + optimizeGameObjects: 0 + motionNodeName: + animationImportErrors: + animationImportWarnings: + animationRetargetingWarnings: + animationDoRetargetingWarnings: 0 + animationCompression: 1 + animationRotationError: .5 + animationPositionError: .5 + animationScaleError: .5 + animationWrapMode: 0 + extraExposedTransformPaths: [] + clipAnimations: [] + isReadable: 1 + meshes: + lODScreenPercentages: [] + globalScale: 1 + meshCompression: 0 + addColliders: 0 + importBlendShapes: 1 + swapUVChannels: 0 + generateSecondaryUV: 0 + useFileUnits: 1 + optimizeMeshForGPU: 1 + keepQuads: 0 + weldVertices: 1 + secondaryUVAngleDistortion: 8 + secondaryUVAreaDistortion: 15.000001 + secondaryUVHardAngle: 88 + secondaryUVPackMargin: 4 + useFileScale: 1 + tangentSpace: + normalSmoothAngle: 60 + splitTangentsAcrossUV: 1 + normalImportMode: 0 + tangentImportMode: 1 + importAnimation: 1 + copyAvatar: 0 + humanDescription: + human: [] + skeleton: [] + armTwist: .5 + foreArmTwist: .5 + upperLegTwist: .5 + legTwist: .5 + armStretch: .0500000007 + legStretch: .0500000007 + feetSpacing: 0 + rootMotionBoneName: + hasTranslationDoF: 0 + lastHumanDescriptionAvatarSource: {instanceID: 0} + animationType: 2 + humanoidOversampling: 1 + additionalBone: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Prefabs.meta b/Assets/Prefabs.meta new file mode 100644 index 0000000..f9ff77a --- /dev/null +++ b/Assets/Prefabs.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: c7d91ea63fa61d54c92863fb2e902622 +folderAsset: yes +timeCreated: 1444783773 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Prefabs/ArriveUnit.prefab b/Assets/Prefabs/ArriveUnit.prefab new file mode 100644 index 0000000..7da545c --- /dev/null +++ b/Assets/Prefabs/ArriveUnit.prefab @@ -0,0 +1,137 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &165344 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 4: {fileID: 444704} + - 33: {fileID: 3325190} + - 23: {fileID: 2344440} + - 54: {fileID: 5442004} + - 135: {fileID: 13518144} + - 114: {fileID: 11439398} + - 114: {fileID: 11492588} + m_Layer: 0 + m_Name: ArriveUnit + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &444704 +Transform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 165344} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 +--- !u!23 &2344440 +MeshRenderer: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 165344} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_Materials: + - {fileID: 2100000, guid: 91a6a98d47f55e347a20c2dadf7a8b73, type: 2} + m_SubsetIndices: + m_StaticBatchRoot: {fileID: 0} + m_UseLightProbes: 1 + m_ReflectionProbeUsage: 1 + m_ProbeAnchor: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 0 + m_ImportantGI: 0 + m_AutoUVMaxDistance: .5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingOrder: 0 +--- !u!33 &3325190 +MeshFilter: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 165344} + m_Mesh: {fileID: 4300000, guid: fb79ccf0fd6eb084587be081e0c6ddac, type: 3} +--- !u!54 &5442004 +Rigidbody: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 165344} + serializedVersion: 2 + m_Mass: 1 + m_Drag: 0 + m_AngularDrag: .0500000007 + m_UseGravity: 0 + m_IsKinematic: 0 + m_Interpolate: 0 + m_Constraints: 120 + m_CollisionDetection: 0 +--- !u!114 &11439398 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 165344} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: ecfcf724a92030e4eb05c1a23e70116f, type: 3} + m_Name: + m_EditorClassIdentifier: + targetPosition: {x: -7, y: -4, z: 0} +--- !u!114 &11492588 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 165344} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a6f58141e9f357e448fd2fa6f1afc1f7, type: 3} + m_Name: + m_EditorClassIdentifier: + maxVelocity: 3.5 + maxAcceleration: 10 + targetRadius: .00499999989 + slowRadius: 1 + timeToTarget: .100000001 + turnSpeed: 20 + smoothing: 1 + numSamplesForSmoothing: 5 + sepMaxAcceleration: 10 + sepThreshold: 1.66659999 +--- !u!135 &13518144 +SphereCollider: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 165344} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Radius: .300000012 + m_Center: {x: 0, y: 0, z: -.300000012} +--- !u!1001 &100100000 +Prefab: + m_ObjectHideFlags: 1 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: [] + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 0} + m_RootGameObject: {fileID: 165344} + m_IsPrefabParent: 1 diff --git a/Assets/Prefabs/ArriveUnit.prefab.meta b/Assets/Prefabs/ArriveUnit.prefab.meta new file mode 100644 index 0000000..37e74fc --- /dev/null +++ b/Assets/Prefabs/ArriveUnit.prefab.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 1c3b01984c06a8a4789f8458da3c2a37 +timeCreated: 1445138170 +licenseType: Free +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Prefabs/ColAvoidUnit1.prefab b/Assets/Prefabs/ColAvoidUnit1.prefab new file mode 100644 index 0000000..66da0d3 --- /dev/null +++ b/Assets/Prefabs/ColAvoidUnit1.prefab @@ -0,0 +1,233 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &116958 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 4: {fileID: 401788} + - 33: {fileID: 3315610} + - 23: {fileID: 2336010} + - 54: {fileID: 5402970} + - 135: {fileID: 13556852} + - 114: {fileID: 11436192} + - 114: {fileID: 11423876} + - 114: {fileID: 11480236} + - 114: {fileID: 11460476} + m_Layer: 0 + m_Name: ColAvoidUnit1 + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!1 &137442 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 4: {fileID: 442132} + - 114: {fileID: 11485160} + - 135: {fileID: 13572740} + m_Layer: 8 + m_Name: ColAvoidSensor + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &401788 +Transform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 116958} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 442132} + m_Father: {fileID: 0} + m_RootOrder: 0 +--- !u!4 &442132 +Transform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 137442} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: -.300000012} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 401788} + m_RootOrder: 0 +--- !u!23 &2336010 +MeshRenderer: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 116958} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_Materials: + - {fileID: 2100000, guid: 91a6a98d47f55e347a20c2dadf7a8b73, type: 2} + m_SubsetIndices: + m_StaticBatchRoot: {fileID: 0} + m_UseLightProbes: 1 + m_ReflectionProbeUsage: 1 + m_ProbeAnchor: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 0 + m_ImportantGI: 0 + m_AutoUVMaxDistance: .5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingOrder: 0 +--- !u!33 &3315610 +MeshFilter: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 116958} + m_Mesh: {fileID: 4300000, guid: fb79ccf0fd6eb084587be081e0c6ddac, type: 3} +--- !u!54 &5402970 +Rigidbody: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 116958} + serializedVersion: 2 + m_Mass: 1 + m_Drag: 0 + m_AngularDrag: .0500000007 + m_UseGravity: 0 + m_IsKinematic: 0 + m_Interpolate: 0 + m_Constraints: 120 + m_CollisionDetection: 0 +--- !u!114 &11423876 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 116958} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a6f58141e9f357e448fd2fa6f1afc1f7, type: 3} + m_Name: + m_EditorClassIdentifier: + maxVelocity: 3.5 + maxAcceleration: 10 + targetRadius: .00499999989 + slowRadius: 1 + timeToTarget: .100000001 + turnSpeed: 20 + smoothing: 1 + numSamplesForSmoothing: 5 + sepMaxAcceleration: 10 + sepThreshold: 1.66659999 +--- !u!114 &11436192 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 116958} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 1fa9bf6680359d048833285e2586e9be, type: 3} + m_Name: + m_EditorClassIdentifier: + path: + nodes: + - {x: -3, y: 2, z: 0} + - {x: 3, y: 2, z: 0} +--- !u!114 &11460476 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 116958} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 0d0fb7ad878c96643a9ef33951d933ba, type: 3} + m_Name: + m_EditorClassIdentifier: + maxAcceleration: 15 +--- !u!114 &11480236 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 116958} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 049423ef460e2524186c56ba0e274368, type: 3} + m_Name: + m_EditorClassIdentifier: + stopRadius: .00499999989 + pathOffset: .709999979 + pathDirection: 1 +--- !u!114 &11485160 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 137442} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 6cfdaa6b4aa86854cad04292e279f62e, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!135 &13556852 +SphereCollider: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 116958} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Radius: .300000012 + m_Center: {x: 0, y: 0, z: -.300000012} +--- !u!135 &13572740 +SphereCollider: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 137442} + m_Material: {fileID: 0} + m_IsTrigger: 1 + m_Enabled: 1 + serializedVersion: 2 + m_Radius: 1.66666663 + m_Center: {x: 0, y: 0, z: 0} +--- !u!1001 &100100000 +Prefab: + m_ObjectHideFlags: 1 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 0} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: m_Layer + value: 8 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: maxAcceleration + value: 15 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 0} + m_RootGameObject: {fileID: 116958} + m_IsPrefabParent: 1 diff --git a/Assets/Prefabs/ColAvoidUnit1.prefab.meta b/Assets/Prefabs/ColAvoidUnit1.prefab.meta new file mode 100644 index 0000000..8c49937 --- /dev/null +++ b/Assets/Prefabs/ColAvoidUnit1.prefab.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 61b087f5f78e8d649a464e6025f7abc1 +timeCreated: 1445058739 +licenseType: Free +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Prefabs/ColAvoidUnit2.prefab b/Assets/Prefabs/ColAvoidUnit2.prefab new file mode 100644 index 0000000..a4466e6 --- /dev/null +++ b/Assets/Prefabs/ColAvoidUnit2.prefab @@ -0,0 +1,249 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &116958 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 4: {fileID: 401788} + - 33: {fileID: 3315610} + - 23: {fileID: 2336010} + - 54: {fileID: 5402970} + - 135: {fileID: 13556852} + - 114: {fileID: 11436192} + - 114: {fileID: 11423876} + - 114: {fileID: 11480236} + - 114: {fileID: 11460476} + m_Layer: 0 + m_Name: ColAvoidUnit2 + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!1 &137442 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 4: {fileID: 442132} + - 114: {fileID: 11485160} + - 65: {fileID: 6513130} + m_Layer: 8 + m_Name: ColAvoidSensor + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &401788 +Transform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 116958} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 442132} + m_Father: {fileID: 0} + m_RootOrder: 0 +--- !u!4 &442132 +Transform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 137442} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: -.300000012} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 401788} + m_RootOrder: 0 +--- !u!23 &2336010 +MeshRenderer: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 116958} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_Materials: + - {fileID: 2100000, guid: 91a6a98d47f55e347a20c2dadf7a8b73, type: 2} + m_SubsetIndices: + m_StaticBatchRoot: {fileID: 0} + m_UseLightProbes: 1 + m_ReflectionProbeUsage: 1 + m_ProbeAnchor: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 0 + m_ImportantGI: 0 + m_AutoUVMaxDistance: .5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingOrder: 0 +--- !u!33 &3315610 +MeshFilter: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 116958} + m_Mesh: {fileID: 4300000, guid: fb79ccf0fd6eb084587be081e0c6ddac, type: 3} +--- !u!54 &5402970 +Rigidbody: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 116958} + serializedVersion: 2 + m_Mass: 1 + m_Drag: 0 + m_AngularDrag: .0500000007 + m_UseGravity: 0 + m_IsKinematic: 0 + m_Interpolate: 0 + m_Constraints: 120 + m_CollisionDetection: 0 +--- !u!65 &6513130 +BoxCollider: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 137442} + m_Material: {fileID: 0} + m_IsTrigger: 1 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1.5, y: .600000024, z: .600000024} + m_Center: {x: .449999988, y: 0, z: 0} +--- !u!114 &11423876 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 116958} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a6f58141e9f357e448fd2fa6f1afc1f7, type: 3} + m_Name: + m_EditorClassIdentifier: + maxVelocity: 3.5 + maxAcceleration: 10 + targetRadius: .00499999989 + slowRadius: 1 + timeToTarget: .100000001 + turnSpeed: 20 + smoothing: 1 + numSamplesForSmoothing: 5 + sepMaxAcceleration: 10 + sepThreshold: 1.66659999 +--- !u!114 &11436192 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 116958} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 1fa9bf6680359d048833285e2586e9be, type: 3} + m_Name: + m_EditorClassIdentifier: + path: + nodes: + - {x: -3, y: 2, z: 0} + - {x: 3, y: 2, z: 0} +--- !u!114 &11460476 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 116958} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 0d0fb7ad878c96643a9ef33951d933ba, type: 3} + m_Name: + m_EditorClassIdentifier: + maxAcceleration: 15 +--- !u!114 &11480236 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 116958} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 049423ef460e2524186c56ba0e274368, type: 3} + m_Name: + m_EditorClassIdentifier: + stopRadius: .00499999989 + pathOffset: .709999979 + pathDirection: 1 +--- !u!114 &11485160 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 137442} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 6cfdaa6b4aa86854cad04292e279f62e, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!135 &13556852 +SphereCollider: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 116958} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Radius: .300000012 + m_Center: {x: 0, y: 0, z: -.300000012} +--- !u!1001 &100100000 +Prefab: + m_ObjectHideFlags: 1 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 0} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: m_Layer + value: 8 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: m_IsTrigger + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: m_Center.x + value: .300000012 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: m_LocalScale.x + value: 1.5 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: m_Name + value: ColAvoidSensor + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: maxAcceleration + value: 15 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 0} + m_RootGameObject: {fileID: 116958} + m_IsPrefabParent: 1 diff --git a/Assets/Prefabs/ColAvoidUnit2.prefab.meta b/Assets/Prefabs/ColAvoidUnit2.prefab.meta new file mode 100644 index 0000000..eed2a98 --- /dev/null +++ b/Assets/Prefabs/ColAvoidUnit2.prefab.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d6f1274d3e6263641a5045bd41ecdb94 +timeCreated: 1445270928 +licenseType: Free +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Prefabs/EvadeUnit.prefab b/Assets/Prefabs/EvadeUnit.prefab new file mode 100644 index 0000000..69f08be --- /dev/null +++ b/Assets/Prefabs/EvadeUnit.prefab @@ -0,0 +1,166 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &175194 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 4: {fileID: 465116} + - 33: {fileID: 3343802} + - 23: {fileID: 2326050} + - 54: {fileID: 5409404} + - 135: {fileID: 13544796} + - 114: {fileID: 11497968} + - 114: {fileID: 11495834} + - 114: {fileID: 11446182} + - 114: {fileID: 11433666} + m_Layer: 0 + m_Name: EvadeUnit + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &465116 +Transform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 175194} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 +--- !u!23 &2326050 +MeshRenderer: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 175194} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_Materials: + - {fileID: 2100000, guid: 91a6a98d47f55e347a20c2dadf7a8b73, type: 2} + m_SubsetIndices: + m_StaticBatchRoot: {fileID: 0} + m_UseLightProbes: 1 + m_ReflectionProbeUsage: 1 + m_ProbeAnchor: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 0 + m_ImportantGI: 0 + m_AutoUVMaxDistance: .5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingOrder: 0 +--- !u!33 &3343802 +MeshFilter: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 175194} + m_Mesh: {fileID: 4300000, guid: fb79ccf0fd6eb084587be081e0c6ddac, type: 3} +--- !u!54 &5409404 +Rigidbody: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 175194} + serializedVersion: 2 + m_Mass: 1 + m_Drag: 0 + m_AngularDrag: .0500000007 + m_UseGravity: 0 + m_IsKinematic: 0 + m_Interpolate: 0 + m_Constraints: 120 + m_CollisionDetection: 0 +--- !u!114 &11433666 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 175194} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 52e7f349139dea54da032182166c26d8, type: 3} + m_Name: + m_EditorClassIdentifier: + maxPrediction: 1 +--- !u!114 &11446182 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 175194} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 9cdf64bcab4d4d8468c92f1bc4b23f7c, type: 3} + m_Name: + m_EditorClassIdentifier: + panicDist: Infinity + decelerateOnStop: 1 + maxAcceleration: 10 + timeToTarget: .100000001 +--- !u!114 &11495834 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 175194} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a6f58141e9f357e448fd2fa6f1afc1f7, type: 3} + m_Name: + m_EditorClassIdentifier: + maxVelocity: 3.5 + maxAcceleration: 10 + targetRadius: .00499999989 + slowRadius: 1 + timeToTarget: .100000001 + turnSpeed: 20 + smoothing: 1 + numSamplesForSmoothing: 5 + sepMaxAcceleration: 10 + sepThreshold: 1.66659999 +--- !u!114 &11497968 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 175194} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: b0a3e859ea8fe534488413270935c6c1, type: 3} + m_Name: + m_EditorClassIdentifier: + target: {fileID: 0} +--- !u!135 &13544796 +SphereCollider: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 175194} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Radius: .300000012 + m_Center: {x: 0, y: 0, z: -.300000012} +--- !u!1001 &100100000 +Prefab: + m_ObjectHideFlags: 1 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: [] + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 0} + m_RootGameObject: {fileID: 175194} + m_IsPrefabParent: 1 diff --git a/Assets/Prefabs/EvadeUnit.prefab.meta b/Assets/Prefabs/EvadeUnit.prefab.meta new file mode 100644 index 0000000..e592e2e --- /dev/null +++ b/Assets/Prefabs/EvadeUnit.prefab.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c5bb1fe20c939954ba720df0cb0be27c +timeCreated: 1445188804 +licenseType: Free +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Prefabs/FleeUnit.prefab b/Assets/Prefabs/FleeUnit.prefab new file mode 100644 index 0000000..1bb5b06 --- /dev/null +++ b/Assets/Prefabs/FleeUnit.prefab @@ -0,0 +1,138 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &131706 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 4: {fileID: 481000} + - 33: {fileID: 3314436} + - 23: {fileID: 2387162} + - 54: {fileID: 5411190} + - 135: {fileID: 13568662} + - 114: {fileID: 11404330} + - 114: {fileID: 11441856} + m_Layer: 0 + m_Name: FleeUnit + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &481000 +Transform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 131706} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 +--- !u!23 &2387162 +MeshRenderer: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 131706} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_Materials: + - {fileID: 2100000, guid: 91a6a98d47f55e347a20c2dadf7a8b73, type: 2} + m_SubsetIndices: + m_StaticBatchRoot: {fileID: 0} + m_UseLightProbes: 1 + m_ReflectionProbeUsage: 1 + m_ProbeAnchor: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 0 + m_ImportantGI: 0 + m_AutoUVMaxDistance: .5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingOrder: 0 +--- !u!33 &3314436 +MeshFilter: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 131706} + m_Mesh: {fileID: 4300000, guid: fb79ccf0fd6eb084587be081e0c6ddac, type: 3} +--- !u!54 &5411190 +Rigidbody: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 131706} + serializedVersion: 2 + m_Mass: 1 + m_Drag: 0 + m_AngularDrag: .0500000007 + m_UseGravity: 0 + m_IsKinematic: 0 + m_Interpolate: 0 + m_Constraints: 120 + m_CollisionDetection: 0 +--- !u!114 &11404330 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 131706} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 55191c5ba3a442d4e8b1f817bdb15378, type: 3} + m_Name: + m_EditorClassIdentifier: + target: {fileID: 0} + panicDist: 5 +--- !u!114 &11441856 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 131706} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a6f58141e9f357e448fd2fa6f1afc1f7, type: 3} + m_Name: + m_EditorClassIdentifier: + maxVelocity: 3.5 + maxAcceleration: 10 + targetRadius: .00499999989 + slowRadius: 1 + timeToTarget: .100000001 + turnSpeed: 20 + smoothing: 1 + numSamplesForSmoothing: 5 + sepMaxAcceleration: 10 + sepThreshold: 1.66659999 +--- !u!135 &13568662 +SphereCollider: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 131706} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Radius: .300000012 + m_Center: {x: 0, y: 0, z: -.300000012} +--- !u!1001 &100100000 +Prefab: + m_ObjectHideFlags: 1 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: [] + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 0} + m_RootGameObject: {fileID: 131706} + m_IsPrefabParent: 1 diff --git a/Assets/Prefabs/FleeUnit.prefab.meta b/Assets/Prefabs/FleeUnit.prefab.meta new file mode 100644 index 0000000..58f611d --- /dev/null +++ b/Assets/Prefabs/FleeUnit.prefab.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 28bd245136767a6439883098b9d5f339 +timeCreated: 1445136290 +licenseType: Free +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Prefabs/FlockingUnit.prefab b/Assets/Prefabs/FlockingUnit.prefab new file mode 100644 index 0000000..ca8dec7 --- /dev/null +++ b/Assets/Prefabs/FlockingUnit.prefab @@ -0,0 +1,271 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &116192 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 4: {fileID: 411838} + - 33: {fileID: 3344166} + - 23: {fileID: 2385776} + - 54: {fileID: 5481068} + - 135: {fileID: 13572110} + - 114: {fileID: 11443776} + - 114: {fileID: 11486314} + - 114: {fileID: 11453142} + - 114: {fileID: 11455984} + - 114: {fileID: 11495998} + - 114: {fileID: 11483568} + m_Layer: 0 + m_Name: FlockingUnit + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!1 &145914 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 4: {fileID: 475080} + - 114: {fileID: 11415046} + - 135: {fileID: 13533002} + m_Layer: 8 + m_Name: Sensor + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &411838 +Transform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 116192} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 475080} + m_Father: {fileID: 0} + m_RootOrder: 0 +--- !u!4 &475080 +Transform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 145914} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: -.300000012} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 411838} + m_RootOrder: 0 +--- !u!23 &2385776 +MeshRenderer: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 116192} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_Materials: + - {fileID: 2100000, guid: 91a6a98d47f55e347a20c2dadf7a8b73, type: 2} + m_SubsetIndices: + m_StaticBatchRoot: {fileID: 0} + m_UseLightProbes: 1 + m_ReflectionProbeUsage: 1 + m_ProbeAnchor: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 0 + m_ImportantGI: 0 + m_AutoUVMaxDistance: .5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingOrder: 0 +--- !u!33 &3344166 +MeshFilter: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 116192} + m_Mesh: {fileID: 4300000, guid: fb79ccf0fd6eb084587be081e0c6ddac, type: 3} +--- !u!54 &5481068 +Rigidbody: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 116192} + serializedVersion: 2 + m_Mass: 1 + m_Drag: 0 + m_AngularDrag: .0500000007 + m_UseGravity: 0 + m_IsKinematic: 0 + m_Interpolate: 0 + m_Constraints: 120 + m_CollisionDetection: 0 +--- !u!114 &11415046 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 145914} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 6cfdaa6b4aa86854cad04292e279f62e, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!114 &11443776 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 116192} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: b367b651c2e510041a2a4431b028bed2, type: 3} + m_Name: + m_EditorClassIdentifier: + cohesionWeight: 1.5 + separationWeight: 2 + velocityMatchWeight: 1 +--- !u!114 &11453142 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 116192} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: b5943b3ef333d3b45b456e9a8ce26d40, type: 3} + m_Name: + m_EditorClassIdentifier: + wanderRadius: 1.20000005 + wanderDistance: 2 + wanderJitter: 40 +--- !u!114 &11455984 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 116192} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4b54d0c5e57344f4994540c2b983849a, type: 3} + m_Name: + m_EditorClassIdentifier: + sepMaxAcceleration: 20 + maxSepDist: 1.29999995 +--- !u!114 &11483568 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 116192} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 712fa36ac13bbc043b7aabcad738e7dc, type: 3} + m_Name: + m_EditorClassIdentifier: + facingCosine: 90 + timeToTarget: .100000001 + maxAcceleration: 4 +--- !u!114 &11486314 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 116192} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a6f58141e9f357e448fd2fa6f1afc1f7, type: 3} + m_Name: + m_EditorClassIdentifier: + maxVelocity: 3 + maxAcceleration: 4 + targetRadius: .00499999989 + slowRadius: 1 + timeToTarget: .100000001 + turnSpeed: 20 + smoothing: 1 + numSamplesForSmoothing: 5 +--- !u!114 &11495998 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 116192} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 1dcff34f8b3e02b44a21610e0e8c523b, type: 3} + m_Name: + m_EditorClassIdentifier: + facingCosine: 120 +--- !u!135 &13533002 +SphereCollider: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 145914} + m_Material: {fileID: 0} + m_IsTrigger: 1 + m_Enabled: 1 + serializedVersion: 2 + m_Radius: 3.70000005 + m_Center: {x: 0, y: 0, z: 0} +--- !u!135 &13572110 +SphereCollider: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 116192} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Radius: .300000012 + m_Center: {x: 0, y: 0, z: -.300000012} +--- !u!1001 &100100000 +Prefab: + m_ObjectHideFlags: 1 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 0} + propertyPath: separationWeight + value: 2 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: sepMaxAcceleration + value: 20 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: m_Radius + value: 3.70000005 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: maxSepDist + value: 1.29999995 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: maxVelocity + value: 3 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: maxAcceleration + value: 4 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 0} + m_RootGameObject: {fileID: 116192} + m_IsPrefabParent: 1 diff --git a/Assets/Prefabs/FlockingUnit.prefab.meta b/Assets/Prefabs/FlockingUnit.prefab.meta new file mode 100644 index 0000000..9d74a00 --- /dev/null +++ b/Assets/Prefabs/FlockingUnit.prefab.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 7811d047f013c5f43a36b27f05f17bbb +timeCreated: 1445645982 +licenseType: Free +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Prefabs/FollowPathUnit.prefab b/Assets/Prefabs/FollowPathUnit.prefab new file mode 100644 index 0000000..6963423 --- /dev/null +++ b/Assets/Prefabs/FollowPathUnit.prefab @@ -0,0 +1,160 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &199308 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 4: {fileID: 471744} + - 33: {fileID: 3334030} + - 23: {fileID: 2307250} + - 54: {fileID: 5448904} + - 135: {fileID: 13520100} + - 114: {fileID: 11449618} + - 114: {fileID: 11468718} + - 114: {fileID: 11466984} + m_Layer: 0 + m_Name: FollowPathUnit + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &471744 +Transform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 199308} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 +--- !u!23 &2307250 +MeshRenderer: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 199308} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_Materials: + - {fileID: 2100000, guid: 91a6a98d47f55e347a20c2dadf7a8b73, type: 2} + m_SubsetIndices: + m_StaticBatchRoot: {fileID: 0} + m_UseLightProbes: 1 + m_ReflectionProbeUsage: 1 + m_ProbeAnchor: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 0 + m_ImportantGI: 0 + m_AutoUVMaxDistance: .5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingOrder: 0 +--- !u!33 &3334030 +MeshFilter: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 199308} + m_Mesh: {fileID: 4300000, guid: fb79ccf0fd6eb084587be081e0c6ddac, type: 3} +--- !u!54 &5448904 +Rigidbody: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 199308} + serializedVersion: 2 + m_Mass: 1 + m_Drag: 0 + m_AngularDrag: .0500000007 + m_UseGravity: 0 + m_IsKinematic: 0 + m_Interpolate: 0 + m_Constraints: 120 + m_CollisionDetection: 0 +--- !u!114 &11449618 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 199308} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d127f162cb2d3b34784df7d7696be4e0, type: 3} + m_Name: + m_EditorClassIdentifier: + path: + nodes: + - {x: -3, y: .5, z: 0} + - {x: 5, y: 3.5, z: 0} +--- !u!114 &11466984 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 199308} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 049423ef460e2524186c56ba0e274368, type: 3} + m_Name: + m_EditorClassIdentifier: + stopRadius: .00499999989 + pathOffset: .709999979 + pathDirection: 1 +--- !u!114 &11468718 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 199308} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a6f58141e9f357e448fd2fa6f1afc1f7, type: 3} + m_Name: + m_EditorClassIdentifier: + maxVelocity: 3.5 + maxAcceleration: 10 + targetRadius: .00499999989 + slowRadius: 1 + timeToTarget: .100000001 + turnSpeed: 20 + smoothing: 1 + numSamplesForSmoothing: 5 + sepMaxAcceleration: 10 + sepThreshold: 1.66659999 + collAvoidRadius: .5 +--- !u!135 &13520100 +SphereCollider: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 199308} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Radius: .300000012 + m_Center: {x: 0, y: 0, z: -.300000012} +--- !u!1001 &100100000 +Prefab: + m_ObjectHideFlags: 1 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 0} + propertyPath: m_Constraints + value: 120 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 0} + m_RootGameObject: {fileID: 199308} + m_IsPrefabParent: 1 diff --git a/Assets/Prefabs/FollowPathUnit.prefab.meta b/Assets/Prefabs/FollowPathUnit.prefab.meta new file mode 100644 index 0000000..985a2c9 --- /dev/null +++ b/Assets/Prefabs/FollowPathUnit.prefab.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 4b8141dc3c6e4cb49b4cf7b795ca5d74 +timeCreated: 1444783790 +licenseType: Free +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Prefabs/HideUnit.prefab b/Assets/Prefabs/HideUnit.prefab new file mode 100644 index 0000000..18beb25 --- /dev/null +++ b/Assets/Prefabs/HideUnit.prefab @@ -0,0 +1,196 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &118936 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 4: {fileID: 435936} + - 33: {fileID: 3382740} + - 23: {fileID: 2370856} + - 54: {fileID: 5438492} + - 135: {fileID: 13559214} + - 114: {fileID: 11443842} + - 114: {fileID: 11410022} + - 114: {fileID: 11460090} + - 114: {fileID: 11422126} + - 114: {fileID: 11468830} + - 114: {fileID: 11480672} + m_Layer: 0 + m_Name: HideUnit + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &435936 +Transform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 118936} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 +--- !u!23 &2370856 +MeshRenderer: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 118936} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_Materials: + - {fileID: 2100000, guid: 91a6a98d47f55e347a20c2dadf7a8b73, type: 2} + m_SubsetIndices: + m_StaticBatchRoot: {fileID: 0} + m_UseLightProbes: 1 + m_ReflectionProbeUsage: 1 + m_ProbeAnchor: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 0 + m_ImportantGI: 0 + m_AutoUVMaxDistance: .5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingOrder: 0 +--- !u!33 &3382740 +MeshFilter: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 118936} + m_Mesh: {fileID: 4300000, guid: fb79ccf0fd6eb084587be081e0c6ddac, type: 3} +--- !u!54 &5438492 +Rigidbody: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 118936} + serializedVersion: 2 + m_Mass: 1 + m_Drag: 0 + m_AngularDrag: .0500000007 + m_UseGravity: 0 + m_IsKinematic: 0 + m_Interpolate: 0 + m_Constraints: 120 + m_CollisionDetection: 0 +--- !u!114 &11410022 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 118936} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a6f58141e9f357e448fd2fa6f1afc1f7, type: 3} + m_Name: + m_EditorClassIdentifier: + maxVelocity: 3.5 + maxAcceleration: 10 + targetRadius: .00499999989 + slowRadius: 1 + timeToTarget: .100000001 + turnSpeed: 20 + smoothing: 1 + numSamplesForSmoothing: 5 + sepMaxAcceleration: 10 + sepThreshold: 1.66659999 +--- !u!114 &11422126 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 118936} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 52e7f349139dea54da032182166c26d8, type: 3} + m_Name: + m_EditorClassIdentifier: + maxPrediction: 1 +--- !u!114 &11443842 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 118936} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 8895fef33386c5d4eb6e38eb84205740, type: 3} + m_Name: + m_EditorClassIdentifier: + target: {fileID: 0} +--- !u!114 &11460090 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 118936} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 9cdf64bcab4d4d8468c92f1bc4b23f7c, type: 3} + m_Name: + m_EditorClassIdentifier: + panicDist: Infinity + decelerateOnStop: 1 + maxAcceleration: 10 + timeToTarget: .100000001 +--- !u!114 &11468830 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 118936} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 8303b41d5b5e59846808128b46019c95, type: 3} + m_Name: + m_EditorClassIdentifier: + distanceFromBoundary: .600000024 +--- !u!114 &11480672 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 118936} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: e008bb997f9e8cc42a7861ed1e5b45ea, type: 3} + m_Name: + m_EditorClassIdentifier: + mainWhiskerLen: 1 + wallAvoidDistance: .5 + sideWhiskerLen: .600000024 + sideWhiskerAngle: 30 + maxAcceleration: 20 +--- !u!135 &13559214 +SphereCollider: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 118936} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Radius: .300000012 + m_Center: {x: 0, y: 0, z: -.300000012} +--- !u!1001 &100100000 +Prefab: + m_ObjectHideFlags: 1 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: [] + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 0} + m_RootGameObject: {fileID: 118936} + m_IsPrefabParent: 1 diff --git a/Assets/Prefabs/HideUnit.prefab.meta b/Assets/Prefabs/HideUnit.prefab.meta new file mode 100644 index 0000000..75daeda --- /dev/null +++ b/Assets/Prefabs/HideUnit.prefab.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 169903cbb559e444f97e4606acc79194 +timeCreated: 1445373002 +licenseType: Free +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Prefabs/InterposeUnit.prefab b/Assets/Prefabs/InterposeUnit.prefab new file mode 100644 index 0000000..ea0fdf6 --- /dev/null +++ b/Assets/Prefabs/InterposeUnit.prefab @@ -0,0 +1,138 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &118818 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 4: {fileID: 494964} + - 33: {fileID: 3360540} + - 23: {fileID: 2354476} + - 54: {fileID: 5453142} + - 135: {fileID: 13588998} + - 114: {fileID: 11470476} + - 114: {fileID: 11409158} + m_Layer: 0 + m_Name: InterposeUnit + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &494964 +Transform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 118818} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 +--- !u!23 &2354476 +MeshRenderer: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 118818} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_Materials: + - {fileID: 2100000, guid: 91a6a98d47f55e347a20c2dadf7a8b73, type: 2} + m_SubsetIndices: + m_StaticBatchRoot: {fileID: 0} + m_UseLightProbes: 1 + m_ReflectionProbeUsage: 1 + m_ProbeAnchor: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 0 + m_ImportantGI: 0 + m_AutoUVMaxDistance: .5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingOrder: 0 +--- !u!33 &3360540 +MeshFilter: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 118818} + m_Mesh: {fileID: 4300000, guid: fb79ccf0fd6eb084587be081e0c6ddac, type: 3} +--- !u!54 &5453142 +Rigidbody: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 118818} + serializedVersion: 2 + m_Mass: 1 + m_Drag: 0 + m_AngularDrag: .0500000007 + m_UseGravity: 0 + m_IsKinematic: 0 + m_Interpolate: 0 + m_Constraints: 120 + m_CollisionDetection: 0 +--- !u!114 &11409158 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 118818} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a6f58141e9f357e448fd2fa6f1afc1f7, type: 3} + m_Name: + m_EditorClassIdentifier: + maxVelocity: 3.5 + maxAcceleration: 10 + targetRadius: .00499999989 + slowRadius: 1 + timeToTarget: .100000001 + turnSpeed: 20 + smoothing: 1 + numSamplesForSmoothing: 5 + sepMaxAcceleration: 10 + sepThreshold: 1.66659999 +--- !u!114 &11470476 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 118818} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 3536641d912cf8b4c9d3c259b62f5e24, type: 3} + m_Name: + m_EditorClassIdentifier: + target1: {fileID: 0} + target2: {fileID: 0} +--- !u!135 &13588998 +SphereCollider: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 118818} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Radius: .300000012 + m_Center: {x: 0, y: 0, z: -.300000012} +--- !u!1001 &100100000 +Prefab: + m_ObjectHideFlags: 1 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: [] + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 0} + m_RootGameObject: {fileID: 118818} + m_IsPrefabParent: 1 diff --git a/Assets/Prefabs/InterposeUnit.prefab.meta b/Assets/Prefabs/InterposeUnit.prefab.meta new file mode 100644 index 0000000..7e83b94 --- /dev/null +++ b/Assets/Prefabs/InterposeUnit.prefab.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: de64d63e28828754fae81e255923d00c +timeCreated: 1445205381 +licenseType: Free +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Prefabs/Obstacle.prefab b/Assets/Prefabs/Obstacle.prefab new file mode 100644 index 0000000..fd9ba91 --- /dev/null +++ b/Assets/Prefabs/Obstacle.prefab @@ -0,0 +1,106 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &161660 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 4: {fileID: 415264} + - 33: {fileID: 3353948} + - 135: {fileID: 13506922} + - 23: {fileID: 2308278} + - 54: {fileID: 5419392} + m_Layer: 0 + m_Name: Obstacle + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &415264 +Transform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 161660} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: .300000012} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 +--- !u!23 &2308278 +MeshRenderer: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 161660} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_Materials: + - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} + m_SubsetIndices: + m_StaticBatchRoot: {fileID: 0} + m_UseLightProbes: 1 + m_ReflectionProbeUsage: 1 + m_ProbeAnchor: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 1 + m_ImportantGI: 0 + m_AutoUVMaxDistance: .5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingOrder: 0 +--- !u!33 &3353948 +MeshFilter: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 161660} + m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0} +--- !u!54 &5419392 +Rigidbody: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 161660} + serializedVersion: 2 + m_Mass: 1 + m_Drag: 0 + m_AngularDrag: .0500000007 + m_UseGravity: 0 + m_IsKinematic: 1 + m_Interpolate: 0 + m_Constraints: 0 + m_CollisionDetection: 0 +--- !u!135 &13506922 +SphereCollider: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 161660} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Radius: .5 + m_Center: {x: 0, y: 0, z: 0} +--- !u!1001 &100100000 +Prefab: + m_ObjectHideFlags: 1 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 0} + propertyPath: m_LocalScale.z + value: .300000012 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 0} + m_RootGameObject: {fileID: 161660} + m_IsPrefabParent: 1 diff --git a/Assets/Prefabs/Obstacle.prefab.meta b/Assets/Prefabs/Obstacle.prefab.meta new file mode 100644 index 0000000..b79edf3 --- /dev/null +++ b/Assets/Prefabs/Obstacle.prefab.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 42b9f0b5c3336af4eb6299b224c18f68 +timeCreated: 1445210771 +licenseType: Free +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Prefabs/OffsetPursuitUnit.prefab b/Assets/Prefabs/OffsetPursuitUnit.prefab new file mode 100644 index 0000000..1d55097 --- /dev/null +++ b/Assets/Prefabs/OffsetPursuitUnit.prefab @@ -0,0 +1,253 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &149352 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 4: {fileID: 485778} + - 114: {fileID: 11474518} + - 135: {fileID: 13561980} + m_Layer: 8 + m_Name: SeparationSensor + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!1 &152688 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 4: {fileID: 438550} + - 33: {fileID: 3367426} + - 23: {fileID: 2337416} + - 54: {fileID: 5495944} + - 135: {fileID: 13595954} + - 114: {fileID: 11461530} + - 114: {fileID: 11468040} + - 114: {fileID: 11495396} + - 114: {fileID: 11467456} + m_Layer: 0 + m_Name: OffsetPursuitUnit + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &438550 +Transform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 152688} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 485778} + m_Father: {fileID: 0} + m_RootOrder: 0 +--- !u!4 &485778 +Transform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 149352} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: -.300000012} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 438550} + m_RootOrder: 0 +--- !u!23 &2337416 +MeshRenderer: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 152688} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_Materials: + - {fileID: 2100000, guid: 91a6a98d47f55e347a20c2dadf7a8b73, type: 2} + m_SubsetIndices: + m_StaticBatchRoot: {fileID: 0} + m_UseLightProbes: 1 + m_ReflectionProbeUsage: 1 + m_ProbeAnchor: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 0 + m_ImportantGI: 0 + m_AutoUVMaxDistance: .5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingOrder: 0 +--- !u!33 &3367426 +MeshFilter: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 152688} + m_Mesh: {fileID: 4300000, guid: fb79ccf0fd6eb084587be081e0c6ddac, type: 3} +--- !u!54 &5495944 +Rigidbody: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 152688} + serializedVersion: 2 + m_Mass: 1 + m_Drag: 0 + m_AngularDrag: .0500000007 + m_UseGravity: 0 + m_IsKinematic: 0 + m_Interpolate: 0 + m_Constraints: 120 + m_CollisionDetection: 0 +--- !u!114 &11461530 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 152688} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 06dca02ef11e90749b6ab44ba79f30da, type: 3} + m_Name: + m_EditorClassIdentifier: + target: {fileID: 0} + offset: {x: 0, y: 0, z: 0} + groupLookDist: 1.5 +--- !u!114 &11467456 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 152688} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4b54d0c5e57344f4994540c2b983849a, type: 3} + m_Name: + m_EditorClassIdentifier: + sepMaxAcceleration: 25 + maxSepDist: .800000012 +--- !u!114 &11468040 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 152688} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a6f58141e9f357e448fd2fa6f1afc1f7, type: 3} + m_Name: + m_EditorClassIdentifier: + maxVelocity: 4 + maxAcceleration: 10 + targetRadius: .00499999989 + slowRadius: 1 + timeToTarget: .100000001 + turnSpeed: 20 + smoothing: 1 + numSamplesForSmoothing: 5 +--- !u!114 &11474518 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 149352} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 6cfdaa6b4aa86854cad04292e279f62e, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!114 &11495396 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 152688} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5663dbf892c30d74caacee862f4f7134, type: 3} + m_Name: + m_EditorClassIdentifier: + maxPrediction: 1 +--- !u!135 &13561980 +SphereCollider: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 149352} + m_Material: {fileID: 0} + m_IsTrigger: 1 + m_Enabled: 1 + serializedVersion: 2 + m_Radius: .330000013 + m_Center: {x: 0, y: 0, z: 0} +--- !u!135 &13595954 +SphereCollider: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 152688} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Radius: .300000012 + m_Center: {x: 0, y: 0, z: -.300000012} +--- !u!1001 &100100000 +Prefab: + m_ObjectHideFlags: 1 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 0} + propertyPath: offset.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: offset.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: m_Radius + value: .330000013 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: slowRadius + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: maxVelocity + value: 4 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: m_Name + value: SeparationSensor + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: sepThreshold + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: sepMaxAcceleration + value: 25 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: maxSepDist + value: .800000012 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 0} + m_RootGameObject: {fileID: 152688} + m_IsPrefabParent: 1 diff --git a/Assets/Prefabs/OffsetPursuitUnit.prefab.meta b/Assets/Prefabs/OffsetPursuitUnit.prefab.meta new file mode 100644 index 0000000..3bc0bce --- /dev/null +++ b/Assets/Prefabs/OffsetPursuitUnit.prefab.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 85f9ae2daa0efae42a9814c8de2d0d2d +timeCreated: 1445386547 +licenseType: Free +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Prefabs/PursueUnit.prefab b/Assets/Prefabs/PursueUnit.prefab new file mode 100644 index 0000000..5fb68c2 --- /dev/null +++ b/Assets/Prefabs/PursueUnit.prefab @@ -0,0 +1,154 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &130544 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 4: {fileID: 442860} + - 33: {fileID: 3331680} + - 23: {fileID: 2326942} + - 54: {fileID: 5438218} + - 135: {fileID: 13565114} + - 114: {fileID: 11432080} + - 114: {fileID: 11497850} + - 114: {fileID: 11449512} + m_Layer: 0 + m_Name: PursueUnit + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &442860 +Transform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 130544} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 +--- !u!23 &2326942 +MeshRenderer: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 130544} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_Materials: + - {fileID: 2100000, guid: 91a6a98d47f55e347a20c2dadf7a8b73, type: 2} + m_SubsetIndices: + m_StaticBatchRoot: {fileID: 0} + m_UseLightProbes: 1 + m_ReflectionProbeUsage: 1 + m_ProbeAnchor: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 0 + m_ImportantGI: 0 + m_AutoUVMaxDistance: .5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingOrder: 0 +--- !u!33 &3331680 +MeshFilter: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 130544} + m_Mesh: {fileID: 4300000, guid: fb79ccf0fd6eb084587be081e0c6ddac, type: 3} +--- !u!54 &5438218 +Rigidbody: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 130544} + serializedVersion: 2 + m_Mass: 1 + m_Drag: 0 + m_AngularDrag: .0500000007 + m_UseGravity: 0 + m_IsKinematic: 0 + m_Interpolate: 0 + m_Constraints: 120 + m_CollisionDetection: 0 +--- !u!114 &11432080 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 130544} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 28a5ea66325b4b34bb7fdd2c5706ca3e, type: 3} + m_Name: + m_EditorClassIdentifier: + target: {fileID: 0} +--- !u!114 &11449512 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 130544} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: e2da78e0f74f9cf449361cf180272705, type: 3} + m_Name: + m_EditorClassIdentifier: + maxPrediction: 1 +--- !u!114 &11497850 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 130544} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a6f58141e9f357e448fd2fa6f1afc1f7, type: 3} + m_Name: + m_EditorClassIdentifier: + maxVelocity: 3.5 + maxAcceleration: 10 + targetRadius: .00499999989 + slowRadius: 1 + timeToTarget: .100000001 + turnSpeed: 20 + smoothing: 1 + numSamplesForSmoothing: 5 + sepMaxAcceleration: 10 + sepThreshold: 1.66659999 +--- !u!135 &13565114 +SphereCollider: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 130544} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Radius: .300000012 + m_Center: {x: 0, y: 0, z: -.300000012} +--- !u!1001 &100100000 +Prefab: + m_ObjectHideFlags: 1 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 0} + propertyPath: maxVelocity + value: 4 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 0} + m_RootGameObject: {fileID: 130544} + m_IsPrefabParent: 1 diff --git a/Assets/Prefabs/PursueUnit.prefab.meta b/Assets/Prefabs/PursueUnit.prefab.meta new file mode 100644 index 0000000..399c2dc --- /dev/null +++ b/Assets/Prefabs/PursueUnit.prefab.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 877167d1f91274a4281ed4fe9864c393 +timeCreated: 1445188923 +licenseType: Free +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Prefabs/ScreenBoundary.prefab b/Assets/Prefabs/ScreenBoundary.prefab new file mode 100644 index 0000000..40e58ef --- /dev/null +++ b/Assets/Prefabs/ScreenBoundary.prefab @@ -0,0 +1,77 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &160320 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 4: {fileID: 457112} + - 33: {fileID: 3324950} + - 65: {fileID: 6565720} + - 114: {fileID: 11470440} + m_Layer: 8 + m_Name: ScreenBoundary + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &457112 +Transform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 160320} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 4} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 +--- !u!33 &3324950 +MeshFilter: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 160320} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!65 &6565720 +BoxCollider: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 160320} + m_Material: {fileID: 0} + m_IsTrigger: 1 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!114 &11470440 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 160320} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 69e649a4f3e436244b1498ab2c59107d, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!1001 &100100000 +Prefab: + m_ObjectHideFlags: 1 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 0} + propertyPath: m_Layer + value: 8 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 0} + m_RootGameObject: {fileID: 160320} + m_IsPrefabParent: 1 diff --git a/Assets/Prefabs/ScreenBoundary.prefab.meta b/Assets/Prefabs/ScreenBoundary.prefab.meta new file mode 100644 index 0000000..e284b4a --- /dev/null +++ b/Assets/Prefabs/ScreenBoundary.prefab.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 2fe3f13595b05354ab1b6bd1c710d777 +timeCreated: 1445037934 +licenseType: Free +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Prefabs/SeekUnit.prefab b/Assets/Prefabs/SeekUnit.prefab new file mode 100644 index 0000000..d5470e2 --- /dev/null +++ b/Assets/Prefabs/SeekUnit.prefab @@ -0,0 +1,137 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &122656 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 4: {fileID: 469634} + - 33: {fileID: 3361840} + - 23: {fileID: 2383574} + - 54: {fileID: 5427432} + - 135: {fileID: 13592788} + - 114: {fileID: 11418928} + - 114: {fileID: 11414804} + m_Layer: 0 + m_Name: SeekUnit + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &469634 +Transform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 122656} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 +--- !u!23 &2383574 +MeshRenderer: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 122656} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_Materials: + - {fileID: 2100000, guid: 91a6a98d47f55e347a20c2dadf7a8b73, type: 2} + m_SubsetIndices: + m_StaticBatchRoot: {fileID: 0} + m_UseLightProbes: 1 + m_ReflectionProbeUsage: 1 + m_ProbeAnchor: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 0 + m_ImportantGI: 0 + m_AutoUVMaxDistance: .5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingOrder: 0 +--- !u!33 &3361840 +MeshFilter: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 122656} + m_Mesh: {fileID: 4300000, guid: fb79ccf0fd6eb084587be081e0c6ddac, type: 3} +--- !u!54 &5427432 +Rigidbody: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 122656} + serializedVersion: 2 + m_Mass: 1 + m_Drag: 0 + m_AngularDrag: .0500000007 + m_UseGravity: 0 + m_IsKinematic: 0 + m_Interpolate: 0 + m_Constraints: 120 + m_CollisionDetection: 0 +--- !u!114 &11414804 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 122656} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a6f58141e9f357e448fd2fa6f1afc1f7, type: 3} + m_Name: + m_EditorClassIdentifier: + maxVelocity: 3.5 + maxAcceleration: 10 + targetRadius: .00499999989 + slowRadius: 1 + timeToTarget: .100000001 + turnSpeed: 20 + smoothing: 1 + numSamplesForSmoothing: 5 + sepMaxAcceleration: 10 + sepThreshold: 1.66659999 +--- !u!114 &11418928 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 122656} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4ae73ab1d415c7c4a9ffbd954f482d15, type: 3} + m_Name: + m_EditorClassIdentifier: + target: {fileID: 0} +--- !u!135 &13592788 +SphereCollider: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 122656} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Radius: .300000012 + m_Center: {x: 0, y: 0, z: -.300000012} +--- !u!1001 &100100000 +Prefab: + m_ObjectHideFlags: 1 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: [] + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 0} + m_RootGameObject: {fileID: 122656} + m_IsPrefabParent: 1 diff --git a/Assets/Prefabs/SeekUnit.prefab.meta b/Assets/Prefabs/SeekUnit.prefab.meta new file mode 100644 index 0000000..708b4dd --- /dev/null +++ b/Assets/Prefabs/SeekUnit.prefab.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 500699f3ba0b7f0438e50d52a0fb3691 +timeCreated: 1445124924 +licenseType: Free +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Prefabs/Spawner.prefab b/Assets/Prefabs/Spawner.prefab new file mode 100644 index 0000000..3b59e3a --- /dev/null +++ b/Assets/Prefabs/Spawner.prefab @@ -0,0 +1,62 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &105404 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 4: {fileID: 491568} + - 114: {fileID: 11493774} + m_Layer: 0 + m_Name: Spawner + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &491568 +Transform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 105404} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 +--- !u!114 &11493774 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 105404} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: b337c53d2671c0a42aea40f4e5df0ae2, type: 3} + m_Name: + m_EditorClassIdentifier: + obj: {fileID: 0} + objectSizeRange: {x: 1, y: 1} + numberOfObjects: 10 + boundaryPadding: 1 + spaceBetweenObjects: 1 + thingsToAvoid: [] +--- !u!1001 &100100000 +Prefab: + m_ObjectHideFlags: 1 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 0} + propertyPath: objectSizeRange.y + value: 1 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 0} + m_RootGameObject: {fileID: 105404} + m_IsPrefabParent: 1 diff --git a/Assets/Prefabs/Spawner.prefab.meta b/Assets/Prefabs/Spawner.prefab.meta new file mode 100644 index 0000000..a27d9dd --- /dev/null +++ b/Assets/Prefabs/Spawner.prefab.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 5c40413500bcaa84f884e9834bc27ec9 +timeCreated: 1445264925 +licenseType: Free +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Prefabs/WallAvoidanceUnit.prefab b/Assets/Prefabs/WallAvoidanceUnit.prefab new file mode 100644 index 0000000..143c8a5 --- /dev/null +++ b/Assets/Prefabs/WallAvoidanceUnit.prefab @@ -0,0 +1,173 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &132094 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 4: {fileID: 490436} + - 33: {fileID: 3387170} + - 23: {fileID: 2314350} + - 54: {fileID: 5473764} + - 135: {fileID: 13547376} + - 114: {fileID: 11440604} + - 114: {fileID: 11461840} + - 114: {fileID: 11416706} + - 114: {fileID: 11437948} + m_Layer: 0 + m_Name: WallAvoidanceUnit + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &490436 +Transform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 132094} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 +--- !u!23 &2314350 +MeshRenderer: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 132094} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_Materials: + - {fileID: 2100000, guid: 91a6a98d47f55e347a20c2dadf7a8b73, type: 2} + m_SubsetIndices: + m_StaticBatchRoot: {fileID: 0} + m_UseLightProbes: 1 + m_ReflectionProbeUsage: 1 + m_ProbeAnchor: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 0 + m_ImportantGI: 0 + m_AutoUVMaxDistance: .5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingOrder: 0 +--- !u!33 &3387170 +MeshFilter: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 132094} + m_Mesh: {fileID: 4300000, guid: fb79ccf0fd6eb084587be081e0c6ddac, type: 3} +--- !u!54 &5473764 +Rigidbody: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 132094} + serializedVersion: 2 + m_Mass: 1 + m_Drag: 0 + m_AngularDrag: .0500000007 + m_UseGravity: 0 + m_IsKinematic: 0 + m_Interpolate: 0 + m_Constraints: 120 + m_CollisionDetection: 0 +--- !u!114 &11416706 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 132094} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 049423ef460e2524186c56ba0e274368, type: 3} + m_Name: + m_EditorClassIdentifier: + stopRadius: .00499999989 + pathOffset: .709999979 + pathDirection: 1 +--- !u!114 &11437948 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 132094} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: e008bb997f9e8cc42a7861ed1e5b45ea, type: 3} + m_Name: + m_EditorClassIdentifier: + mainWhiskerLen: 1.25 + wallAvoidDistance: .5 + sideWhiskerLen: .700999975 + sideWhiskerAngle: 45 + acceleration: 40 +--- !u!114 &11440604 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 132094} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 1e09b033aa7b983469142324db471025, type: 3} + m_Name: + m_EditorClassIdentifier: + path: + nodes: + - {x: 3, y: .5, z: 0} + - {x: -5, y: 3.5, z: 0} +--- !u!114 &11461840 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 132094} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a6f58141e9f357e448fd2fa6f1afc1f7, type: 3} + m_Name: + m_EditorClassIdentifier: + maxVelocity: 3.5 + maxAcceleration: 10 + targetRadius: .00499999989 + slowRadius: 1 + timeToTarget: .100000001 + turnSpeed: 20 + smoothing: 1 + numSamplesForSmoothing: 5 + sepMaxAcceleration: 10 + sepThreshold: 1.66659999 + collAvoidRadius: .5 +--- !u!135 &13547376 +SphereCollider: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 132094} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Radius: .300000012 + m_Center: {x: 0, y: 0, z: -.300000012} +--- !u!1001 &100100000 +Prefab: + m_ObjectHideFlags: 1 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: [] + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 0} + m_RootGameObject: {fileID: 132094} + m_IsPrefabParent: 1 diff --git a/Assets/Prefabs/WallAvoidanceUnit.prefab.meta b/Assets/Prefabs/WallAvoidanceUnit.prefab.meta new file mode 100644 index 0000000..5fe26c1 --- /dev/null +++ b/Assets/Prefabs/WallAvoidanceUnit.prefab.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 3356bb3bf08034540bdb1c85eba417e0 +timeCreated: 1445034535 +licenseType: Free +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Prefabs/Wander1Unit.prefab b/Assets/Prefabs/Wander1Unit.prefab new file mode 100644 index 0000000..0f19982 --- /dev/null +++ b/Assets/Prefabs/Wander1Unit.prefab @@ -0,0 +1,156 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &101970 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 4: {fileID: 499076} + - 33: {fileID: 3360636} + - 23: {fileID: 2303730} + - 54: {fileID: 5405632} + - 135: {fileID: 13565118} + - 114: {fileID: 11477000} + - 114: {fileID: 11439074} + - 114: {fileID: 11467628} + m_Layer: 0 + m_Name: Wander1Unit + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &499076 +Transform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 101970} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 +--- !u!23 &2303730 +MeshRenderer: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 101970} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_Materials: + - {fileID: 2100000, guid: 91a6a98d47f55e347a20c2dadf7a8b73, type: 2} + m_SubsetIndices: + m_StaticBatchRoot: {fileID: 0} + m_UseLightProbes: 1 + m_ReflectionProbeUsage: 1 + m_ProbeAnchor: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 0 + m_ImportantGI: 0 + m_AutoUVMaxDistance: .5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingOrder: 0 +--- !u!33 &3360636 +MeshFilter: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 101970} + m_Mesh: {fileID: 4300000, guid: fb79ccf0fd6eb084587be081e0c6ddac, type: 3} +--- !u!54 &5405632 +Rigidbody: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 101970} + serializedVersion: 2 + m_Mass: 1 + m_Drag: 0 + m_AngularDrag: .0500000007 + m_UseGravity: 0 + m_IsKinematic: 0 + m_Interpolate: 0 + m_Constraints: 120 + m_CollisionDetection: 0 +--- !u!114 &11439074 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 101970} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a6f58141e9f357e448fd2fa6f1afc1f7, type: 3} + m_Name: + m_EditorClassIdentifier: + maxVelocity: 3.5 + maxAcceleration: 6.66599989 + targetRadius: .00499999989 + slowRadius: 1 + timeToTarget: .100000001 + turnSpeed: 20 + smoothing: 1 + numSamplesForSmoothing: 5 + sepMaxAcceleration: 10 + sepThreshold: 1.66659999 + collAvoidRadius: .5 +--- !u!114 &11467628 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 101970} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 22a41feec586bae4ba2177d8457b7fa2, type: 3} + m_Name: + m_EditorClassIdentifier: + wanderOffset: 1.5 + wanderRadius: 2 + wanderRate: .400000006 +--- !u!114 &11477000 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 101970} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 9101efdc6414c2c48b7e2db10478de53, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!135 &13565118 +SphereCollider: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 101970} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Radius: .300000012 + m_Center: {x: 0, y: 0, z: -.300000012} +--- !u!1001 &100100000 +Prefab: + m_ObjectHideFlags: 1 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 0} + propertyPath: m_Constraints + value: 120 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 0} + m_RootGameObject: {fileID: 101970} + m_IsPrefabParent: 1 diff --git a/Assets/Prefabs/Wander1Unit.prefab.meta b/Assets/Prefabs/Wander1Unit.prefab.meta new file mode 100644 index 0000000..cacf625 --- /dev/null +++ b/Assets/Prefabs/Wander1Unit.prefab.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 646771f426c6db7489d21b5d19614acd +timeCreated: 1444858143 +licenseType: Free +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Prefabs/Wander2Unit.prefab b/Assets/Prefabs/Wander2Unit.prefab new file mode 100644 index 0000000..1e921cb --- /dev/null +++ b/Assets/Prefabs/Wander2Unit.prefab @@ -0,0 +1,156 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &163698 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 4: {fileID: 486792} + - 33: {fileID: 3359818} + - 23: {fileID: 2332060} + - 54: {fileID: 5424576} + - 135: {fileID: 13510442} + - 114: {fileID: 11481402} + - 114: {fileID: 11457380} + - 114: {fileID: 11474718} + m_Layer: 0 + m_Name: Wander2Unit + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &486792 +Transform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 163698} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 +--- !u!23 &2332060 +MeshRenderer: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 163698} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_Materials: + - {fileID: 2100000, guid: 91a6a98d47f55e347a20c2dadf7a8b73, type: 2} + m_SubsetIndices: + m_StaticBatchRoot: {fileID: 0} + m_UseLightProbes: 1 + m_ReflectionProbeUsage: 1 + m_ProbeAnchor: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 0 + m_ImportantGI: 0 + m_AutoUVMaxDistance: .5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingOrder: 0 +--- !u!33 &3359818 +MeshFilter: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 163698} + m_Mesh: {fileID: 4300000, guid: fb79ccf0fd6eb084587be081e0c6ddac, type: 3} +--- !u!54 &5424576 +Rigidbody: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 163698} + serializedVersion: 2 + m_Mass: 1 + m_Drag: 0 + m_AngularDrag: .0500000007 + m_UseGravity: 0 + m_IsKinematic: 0 + m_Interpolate: 0 + m_Constraints: 120 + m_CollisionDetection: 0 +--- !u!114 &11457380 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 163698} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a6f58141e9f357e448fd2fa6f1afc1f7, type: 3} + m_Name: + m_EditorClassIdentifier: + maxVelocity: 3.5 + maxAcceleration: 6.66599989 + targetRadius: .00499999989 + slowRadius: 1 + timeToTarget: .100000001 + turnSpeed: 20 + smoothing: 1 + numSamplesForSmoothing: 5 + sepMaxAcceleration: 10 + sepThreshold: 1.66659999 + collAvoidRadius: .5 +--- !u!114 &11474718 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 163698} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: b5943b3ef333d3b45b456e9a8ce26d40, type: 3} + m_Name: + m_EditorClassIdentifier: + wanderRadius: 1.20000005 + wanderDistance: 2 + wanderJitter: 40 +--- !u!114 &11481402 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 163698} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: ecb0c8fe6f551294bbba53fde5ed4b5d, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!135 &13510442 +SphereCollider: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 163698} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Radius: .300000012 + m_Center: {x: 0, y: 0, z: -.300000012} +--- !u!1001 &100100000 +Prefab: + m_ObjectHideFlags: 1 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 0} + propertyPath: m_Constraints + value: 120 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 0} + m_RootGameObject: {fileID: 163698} + m_IsPrefabParent: 1 diff --git a/Assets/Prefabs/Wander2Unit.prefab.meta b/Assets/Prefabs/Wander2Unit.prefab.meta new file mode 100644 index 0000000..72d03bb --- /dev/null +++ b/Assets/Prefabs/Wander2Unit.prefab.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 11eae3e40166fd0429da122769705e13 +timeCreated: 1444858392 +licenseType: Free +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Prefabs/WanderAvoidUnit.prefab b/Assets/Prefabs/WanderAvoidUnit.prefab new file mode 100644 index 0000000..e66e930 --- /dev/null +++ b/Assets/Prefabs/WanderAvoidUnit.prefab @@ -0,0 +1,217 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &118562 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 4: {fileID: 408412} + - 33: {fileID: 3331998} + - 23: {fileID: 2364876} + - 54: {fileID: 5403330} + - 135: {fileID: 13575940} + - 114: {fileID: 11470582} + - 114: {fileID: 11445756} + - 114: {fileID: 11441008} + - 114: {fileID: 11423726} + m_Layer: 0 + m_Name: WanderAvoidUnit + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!1 &135936 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 4: {fileID: 444106} + - 114: {fileID: 11433922} + - 65: {fileID: 6592742} + m_Layer: 8 + m_Name: ColAvoidSensor + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &408412 +Transform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 118562} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 444106} + m_Father: {fileID: 0} + m_RootOrder: 0 +--- !u!4 &444106 +Transform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 135936} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: -.300000012} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 408412} + m_RootOrder: 0 +--- !u!23 &2364876 +MeshRenderer: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 118562} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_Materials: + - {fileID: 2100000, guid: 91a6a98d47f55e347a20c2dadf7a8b73, type: 2} + m_SubsetIndices: + m_StaticBatchRoot: {fileID: 0} + m_UseLightProbes: 1 + m_ReflectionProbeUsage: 1 + m_ProbeAnchor: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 0 + m_ImportantGI: 0 + m_AutoUVMaxDistance: .5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingOrder: 0 +--- !u!33 &3331998 +MeshFilter: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 118562} + m_Mesh: {fileID: 4300000, guid: fb79ccf0fd6eb084587be081e0c6ddac, type: 3} +--- !u!54 &5403330 +Rigidbody: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 118562} + serializedVersion: 2 + m_Mass: 1 + m_Drag: 0 + m_AngularDrag: .0500000007 + m_UseGravity: 0 + m_IsKinematic: 0 + m_Interpolate: 0 + m_Constraints: 120 + m_CollisionDetection: 0 +--- !u!65 &6592742 +BoxCollider: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 135936} + m_Material: {fileID: 0} + m_IsTrigger: 1 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1.5, y: .600000024, z: .600000024} + m_Center: {x: .449999988, y: 0, z: 0} +--- !u!114 &11423726 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 118562} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: b5943b3ef333d3b45b456e9a8ce26d40, type: 3} + m_Name: + m_EditorClassIdentifier: + wanderRadius: 1.20000005 + wanderDistance: 2 + wanderJitter: 40 +--- !u!114 &11433922 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 135936} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 6cfdaa6b4aa86854cad04292e279f62e, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!114 &11441008 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 118562} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 0d0fb7ad878c96643a9ef33951d933ba, type: 3} + m_Name: + m_EditorClassIdentifier: + maxAcceleration: 15 +--- !u!114 &11445756 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 118562} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a6f58141e9f357e448fd2fa6f1afc1f7, type: 3} + m_Name: + m_EditorClassIdentifier: + maxVelocity: 3.5 + maxAcceleration: 10 + targetRadius: .00499999989 + slowRadius: 1 + timeToTarget: .100000001 + turnSpeed: 20 + smoothing: 1 + numSamplesForSmoothing: 5 + sepMaxAcceleration: 10 + sepThreshold: 1.66659999 +--- !u!114 &11470582 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 118562} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: bfc8bb85285d9974684a932daef751b2, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!135 &13575940 +SphereCollider: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 118562} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Radius: .300000012 + m_Center: {x: 0, y: 0, z: -.300000012} +--- !u!1001 &100100000 +Prefab: + m_ObjectHideFlags: 1 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: [] + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 0} + m_RootGameObject: {fileID: 118562} + m_IsPrefabParent: 1 diff --git a/Assets/Prefabs/WanderAvoidUnit.prefab.meta b/Assets/Prefabs/WanderAvoidUnit.prefab.meta new file mode 100644 index 0000000..96f8ca9 --- /dev/null +++ b/Assets/Prefabs/WanderAvoidUnit.prefab.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: bd1d62c70d726f34eb654e97eb3686cd +timeCreated: 1445290612 +licenseType: Free +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts.meta b/Assets/Scripts.meta new file mode 100644 index 0000000..fe6345e --- /dev/null +++ b/Assets/Scripts.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 697f66ace6f88074695e73d7159f4f19 +folderAsset: yes +timeCreated: 1444774494 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/ArriveUnit.cs b/Assets/Scripts/ArriveUnit.cs new file mode 100644 index 0000000..fcba0d4 --- /dev/null +++ b/Assets/Scripts/ArriveUnit.cs @@ -0,0 +1,24 @@ +using UnityEngine; +using System.Collections; + +public class ArriveUnit : MonoBehaviour { + + public Vector3 targetPosition; + + private SteeringBasics steeringBasics; + + // Use this for initialization + void Start() + { + steeringBasics = GetComponent(); + } + + // Update is called once per frame + void Update() + { + Vector3 accel = steeringBasics.arrive(targetPosition); + + steeringBasics.steer(accel); + steeringBasics.lookWhereYoureGoing(); + } +} diff --git a/Assets/Scripts/ArriveUnit.cs.meta b/Assets/Scripts/ArriveUnit.cs.meta new file mode 100644 index 0000000..91c30d3 --- /dev/null +++ b/Assets/Scripts/ArriveUnit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ecfcf724a92030e4eb05c1a23e70116f +timeCreated: 1445137354 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Camera.meta b/Assets/Scripts/Camera.meta new file mode 100644 index 0000000..592c591 --- /dev/null +++ b/Assets/Scripts/Camera.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 0faec369b0e19734fa127edb321ad3f3 +folderAsset: yes +timeCreated: 1445458543 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Camera/CameraMovement.cs b/Assets/Scripts/Camera/CameraMovement.cs new file mode 100644 index 0000000..876241e --- /dev/null +++ b/Assets/Scripts/Camera/CameraMovement.cs @@ -0,0 +1,23 @@ +using UnityEngine; +using System.Collections; + +public class CameraMovement : MonoBehaviour { + + public Transform target; + + private Vector3 displacement; + // Use this for initialization + void Start () { + //target = GameObject.Find ("Player").transform; + + displacement = transform.position - target.position; + } + + // LateUpdate is called once per frame after the other normal Update functions have already run + void LateUpdate () { + //Debug.Log (Vector2.Distance (transform.position, target.position)); + if(target != null) { + transform.position = target.position + displacement; + } + } +} diff --git a/Assets/Scripts/Camera/CameraMovement.cs.meta b/Assets/Scripts/Camera/CameraMovement.cs.meta new file mode 100644 index 0000000..729a948 --- /dev/null +++ b/Assets/Scripts/Camera/CameraMovement.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 49346cc1dafa05c429a4659d89e3a1f6 +timeCreated: 1445450394 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Camera/InfiniteGrid.cs b/Assets/Scripts/Camera/InfiniteGrid.cs new file mode 100644 index 0000000..d41a744 --- /dev/null +++ b/Assets/Scripts/Camera/InfiniteGrid.cs @@ -0,0 +1,72 @@ +using UnityEngine; +using System.Collections; +using System.Collections.Generic; + +/** + * This class will create an infinite grid in the x/y directions for a camera using perspective. + * Put this class on your camera. + */ +public class InfiniteGrid : MonoBehaviour { + + public bool show = true; + + public float cellSize = 1; + + public float zPosition = 0; + + private float[] getGridBounds() { + float distToGrid = zPosition - transform.position.z; + + float angle = (GetComponent().fieldOfView / 2) * Mathf.Deg2Rad; + + float halfHeight = Mathf.Tan (angle) * distToGrid; + float halfWidth = GetComponent().aspect * halfHeight; + + float[] bounds = new float[4]; + + // Get the camera bounds + bounds [0] = transform.position.x - halfWidth; + bounds [1] = transform.position.y - halfHeight; + bounds [2] = transform.position.x + halfWidth; + bounds [3] = transform.position.y + halfHeight; + + // Convert the camera bounds to the grid bounds + bounds [0] = Mathf.Floor(bounds [0] / cellSize) * cellSize; + bounds [1] = Mathf.Floor(bounds [1] / cellSize) * cellSize; + bounds [2] = Mathf.Ceil(bounds [2] / cellSize) * cellSize; + bounds [3] = Mathf.Ceil(bounds [3] / cellSize) * cellSize; + + return bounds; + } + + public Material lineMat; + + void OnPostRender() + { + GL.Begin( GL.LINES ); + + if(show) + { + Material lineMaterial = lineMat; + lineMaterial.SetPass( 0 ); + + float[] bounds = getGridBounds (); + + //X axis lines + for(float j = 0; bounds[1] + j <= bounds[3]; j += cellSize) + { + GL.Vertex3( bounds[0], bounds[1] + j, zPosition); + GL.Vertex3( bounds[2], bounds[1] + j, zPosition); + } + + //Y axis lines + for(float k = 0; bounds[0] + k <= bounds[2]; k += cellSize) + { + GL.Vertex3( bounds[0] + k, bounds[1], zPosition); + GL.Vertex3( bounds[0] + k, bounds[3], zPosition); + } + } + + GL.End(); + } +} \ No newline at end of file diff --git a/Assets/Scripts/Camera/InfiniteGrid.cs.meta b/Assets/Scripts/Camera/InfiniteGrid.cs.meta new file mode 100644 index 0000000..564ad35 --- /dev/null +++ b/Assets/Scripts/Camera/InfiniteGrid.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 770499eb59bf16e40babd2e41f691bda +timeCreated: 1445450857 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/ColAvoidUnit.cs b/Assets/Scripts/ColAvoidUnit.cs new file mode 100644 index 0000000..f0d6114 --- /dev/null +++ b/Assets/Scripts/ColAvoidUnit.cs @@ -0,0 +1,51 @@ +using UnityEngine; +using System.Collections; + +public class ColAvoidUnit : MonoBehaviour { + + public LinePath path; + + private SteeringBasics steeringBasics; + private FollowPath followPath; + private CollisionAvoidance colAvoid; + + private NearSensor colAvoidSensor; + + // Use this for initialization + void Start() + { + path.calcDistances(); + + steeringBasics = GetComponent(); + followPath = GetComponent(); + colAvoid = GetComponent(); + + colAvoidSensor = transform.Find("ColAvoidSensor").GetComponent(); + } + + // Update is called once per frame + void Update() + { + path.draw(); + + if (isAtEndOfPath()) + { + path.reversePath(); + } + + Vector3 accel = colAvoid.getSteering(colAvoidSensor.targets); + + if (accel.magnitude < 0.005f) + { + accel = followPath.getSteering(path); + } + + steeringBasics.steer(accel); + steeringBasics.lookWhereYoureGoing(); + } + + public bool isAtEndOfPath() + { + return Vector3.Distance(path.endNode, transform.position) < followPath.stopRadius; + } +} diff --git a/Assets/Scripts/ColAvoidUnit.cs.meta b/Assets/Scripts/ColAvoidUnit.cs.meta new file mode 100644 index 0000000..0b51a0f --- /dev/null +++ b/Assets/Scripts/ColAvoidUnit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1fa9bf6680359d048833285e2586e9be +timeCreated: 1445041211 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/EvadeUnit.cs b/Assets/Scripts/EvadeUnit.cs new file mode 100644 index 0000000..b2f8d3d --- /dev/null +++ b/Assets/Scripts/EvadeUnit.cs @@ -0,0 +1,27 @@ +using UnityEngine; +using System.Collections; + +public class EvadeUnit : MonoBehaviour +{ + + public Rigidbody target; + + private SteeringBasics steeringBasics; + private Evade evade; + + // Use this for initialization + void Start() + { + steeringBasics = GetComponent(); + evade = GetComponent(); + } + + // Update is called once per frame + void Update() + { + Vector3 accel = evade.getSteering(target); + + steeringBasics.steer(accel); + steeringBasics.lookWhereYoureGoing(); + } +} diff --git a/Assets/Scripts/EvadeUnit.cs.meta b/Assets/Scripts/EvadeUnit.cs.meta new file mode 100644 index 0000000..b71cef0 --- /dev/null +++ b/Assets/Scripts/EvadeUnit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b0a3e859ea8fe534488413270935c6c1 +timeCreated: 1445141347 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/FleeUnit.cs b/Assets/Scripts/FleeUnit.cs new file mode 100644 index 0000000..d457848 --- /dev/null +++ b/Assets/Scripts/FleeUnit.cs @@ -0,0 +1,27 @@ +using UnityEngine; +using System.Collections; + +public class FleeUnit : MonoBehaviour +{ + + public Transform target; + + private SteeringBasics steeringBasics; + private Flee flee; + + // Use this for initialization + void Start() + { + steeringBasics = GetComponent(); + flee = GetComponent(); + } + + // Update is called once per frame + void Update() + { + Vector3 accel = flee.getSteering(target.position); + + steeringBasics.steer(accel); + steeringBasics.lookWhereYoureGoing(); + } +} diff --git a/Assets/Scripts/FleeUnit.cs.meta b/Assets/Scripts/FleeUnit.cs.meta new file mode 100644 index 0000000..6896669 --- /dev/null +++ b/Assets/Scripts/FleeUnit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 55191c5ba3a442d4e8b1f817bdb15378 +timeCreated: 1445125027 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/FlockingUnit.cs b/Assets/Scripts/FlockingUnit.cs new file mode 100644 index 0000000..90df561 --- /dev/null +++ b/Assets/Scripts/FlockingUnit.cs @@ -0,0 +1,47 @@ +using UnityEngine; +using System.Collections; + +public class FlockingUnit : MonoBehaviour +{ + public float cohesionWeight = 1.5f; + public float separationWeight = 2f; + public float velocityMatchWeight = 1f; + + private SteeringBasics steeringBasics; + private Wander2 wander; + private Cohesion cohesion; + private Separation separation; + private VelocityMatch velocityMatch; + + private NearSensor sensor; + + // Use this for initialization + void Start() + { + steeringBasics = GetComponent(); + wander = GetComponent(); + cohesion = GetComponent(); + separation = GetComponent(); + velocityMatch = GetComponent(); + + sensor = transform.Find("Sensor").GetComponent(); + } + + // Update is called once per frame + void Update() + { + Vector3 accel = Vector3.zero; + + accel += cohesion.getSteering(sensor.targets) * cohesionWeight; + accel += separation.getSteering(sensor.targets) * separationWeight; + accel += velocityMatch.getSteering(sensor.targets) * velocityMatchWeight; + + if (accel.magnitude < 0.005f) + { + accel = wander.getSteering(); + } + + steeringBasics.steer(accel); + steeringBasics.lookWhereYoureGoing(); + } +} diff --git a/Assets/Scripts/FlockingUnit.cs.meta b/Assets/Scripts/FlockingUnit.cs.meta new file mode 100644 index 0000000..deb4e53 --- /dev/null +++ b/Assets/Scripts/FlockingUnit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b367b651c2e510041a2a4431b028bed2 +timeCreated: 1445651384 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/FollowPathUnit.cs b/Assets/Scripts/FollowPathUnit.cs new file mode 100644 index 0000000..9c779f5 --- /dev/null +++ b/Assets/Scripts/FollowPathUnit.cs @@ -0,0 +1,42 @@ +using UnityEngine; +using System.Collections; + +public class FollowPathUnit : MonoBehaviour { + + public bool pathLoop = false; + + public bool reversePath = false; + + public LinePath path; + + private SteeringBasics steeringBasics; + private FollowPath followPath; + + // Use this for initialization + void Start () { + path.calcDistances(); + + steeringBasics = GetComponent(); + followPath = GetComponent(); + } + + // Update is called once per frame + void Update () { + path.draw(); + + if (reversePath && isAtEndOfPath()) + { + path.reversePath(); + } + + Vector3 accel = followPath.getSteering(path, pathLoop); + + steeringBasics.steer(accel); + steeringBasics.lookWhereYoureGoing(); + } + + public bool isAtEndOfPath() + { + return Vector3.Distance(path.endNode, transform.position) < followPath.stopRadius; + } +} diff --git a/Assets/Scripts/FollowPathUnit.cs.meta b/Assets/Scripts/FollowPathUnit.cs.meta new file mode 100644 index 0000000..26f7880 --- /dev/null +++ b/Assets/Scripts/FollowPathUnit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d127f162cb2d3b34784df7d7696be4e0 +timeCreated: 1444774830 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/HideUnit.cs b/Assets/Scripts/HideUnit.cs new file mode 100644 index 0000000..987b5b1 --- /dev/null +++ b/Assets/Scripts/HideUnit.cs @@ -0,0 +1,39 @@ +using UnityEngine; +using System.Collections; + +public class HideUnit : MonoBehaviour { + public Rigidbody target; + + private SteeringBasics steeringBasics; + private Hide hide; + private Spawner obstacleSpawner; + + private WallAvoidance wallAvoid; + + // Use this for initialization + void Start() + { + steeringBasics = GetComponent(); + hide = GetComponent(); + obstacleSpawner = GameObject.Find("ObstacleSpawner").GetComponent(); + + wallAvoid = GetComponent(); + } + + // Update is called once per frame + void Update() + { + Vector3 hidePosition; + Vector3 hideAccel = hide.getSteering(target, obstacleSpawner.objs, out hidePosition); + + Vector3 accel = wallAvoid.getSteering(hidePosition - transform.position); + + if (accel.magnitude < 0.005f) + { + accel = hideAccel; + } + + steeringBasics.steer(accel); + steeringBasics.lookWhereYoureGoing(); + } +} diff --git a/Assets/Scripts/HideUnit.cs.meta b/Assets/Scripts/HideUnit.cs.meta new file mode 100644 index 0000000..ef545fe --- /dev/null +++ b/Assets/Scripts/HideUnit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8895fef33386c5d4eb6e38eb84205740 +timeCreated: 1445294691 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/InterposeUnit.cs b/Assets/Scripts/InterposeUnit.cs new file mode 100644 index 0000000..34108a9 --- /dev/null +++ b/Assets/Scripts/InterposeUnit.cs @@ -0,0 +1,25 @@ +using UnityEngine; +using System.Collections; + +public class InterposeUnit : MonoBehaviour { + + public Rigidbody target1; + public Rigidbody target2; + + private SteeringBasics steeringBasics; + + // Use this for initialization + void Start() + { + steeringBasics = GetComponent(); + } + + // Update is called once per frame + void Update() + { + Vector3 accel = steeringBasics.interpose(target1, target2); + + steeringBasics.steer(accel); + steeringBasics.lookWhereYoureGoing(); + } +} diff --git a/Assets/Scripts/InterposeUnit.cs.meta b/Assets/Scripts/InterposeUnit.cs.meta new file mode 100644 index 0000000..58217f6 --- /dev/null +++ b/Assets/Scripts/InterposeUnit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3536641d912cf8b4c9d3c259b62f5e24 +timeCreated: 1445204369 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Movement.meta b/Assets/Scripts/Movement.meta new file mode 100644 index 0000000..42eaaf7 --- /dev/null +++ b/Assets/Scripts/Movement.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 3619010d62741404f97da7be43ca847b +folderAsset: yes +timeCreated: 1444774530 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Movement/Cohesion.cs b/Assets/Scripts/Movement/Cohesion.cs new file mode 100644 index 0000000..8c287ef --- /dev/null +++ b/Assets/Scripts/Movement/Cohesion.cs @@ -0,0 +1,46 @@ +using UnityEngine; +using System.Collections; +using System.Collections.Generic; + +[RequireComponent(typeof(SteeringBasics))] +public class Cohesion : MonoBehaviour { + + public float facingCosine = 120f; + + private float facingCosineVal; + + private SteeringBasics steeringBasics; + + // Use this for initialization + void Start () { + facingCosineVal = Mathf.Cos(facingCosine * Mathf.Deg2Rad); + steeringBasics = GetComponent(); + } + + public Vector3 getSteering(ICollection targets) + { + Vector3 centerOfMass = Vector3.zero; + int count = 0; + + /* Sums up everyone's position who is close enough and in front of the character */ + foreach (Rigidbody r in targets) + { + if (steeringBasics.isFacing(r.position, facingCosineVal)) + { + centerOfMass += r.position; + count++; + } + } + + if (count == 0) + { + return Vector3.zero; + } + else + { + centerOfMass = centerOfMass / count; + + return steeringBasics.arrive(centerOfMass); + } + } +} diff --git a/Assets/Scripts/Movement/Cohesion.cs.meta b/Assets/Scripts/Movement/Cohesion.cs.meta new file mode 100644 index 0000000..633e1b2 --- /dev/null +++ b/Assets/Scripts/Movement/Cohesion.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1dcff34f8b3e02b44a21610e0e8c523b +timeCreated: 1445674703 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Movement/CollisionAvoidance.cs b/Assets/Scripts/Movement/CollisionAvoidance.cs new file mode 100644 index 0000000..8647f0e --- /dev/null +++ b/Assets/Scripts/Movement/CollisionAvoidance.cs @@ -0,0 +1,105 @@ +using UnityEngine; +using System.Collections; +using System.Collections.Generic; + +public class CollisionAvoidance : MonoBehaviour { + public float maxAcceleration = 15f; + + //public float agentRadius = 0.25f; + + private float characterRadius; + + private Rigidbody rb; + + // Use this for initialization + void Start() + { + characterRadius = SteeringBasics.getBoundingRadius(transform); + + rb = GetComponent(); + } + + public Vector3 getSteering(ICollection targets) + { + Vector3 acceleration = Vector3.zero; + + /* 1. Find the target that the character will collide with first */ + + /* The first collision time */ + float shortestTime = float.PositiveInfinity; + + /* The first target that will collide and other data that + * we will need and can avoid recalculating */ + Rigidbody firstTarget = null; + //float firstMinSeparation = 0, firstDistance = 0; + float firstMinSeparation = 0, firstDistance = 0, firstRadius = 0; + Vector3 firstRelativePos = Vector3.zero, firstRelativeVel = Vector3.zero; + + foreach (Rigidbody r in targets) + { + /* Calculate the time to collision */ + Vector3 relativePos = transform.position - r.position; + Vector3 relativeVel = rb.velocity - r.velocity; + float distance = relativePos.magnitude; + float relativeSpeed = relativeVel.magnitude; + + if (relativeSpeed == 0) + { + continue; + } + + float timeToCollision = -1 * Vector3.Dot(relativePos, relativeVel) / (relativeSpeed * relativeSpeed); + + /* Check if they will collide at all */ + Vector3 separation = relativePos + relativeVel * timeToCollision; + float minSeparation = separation.magnitude; + + float targetRadius = SteeringBasics.getBoundingRadius(r.transform); + + if (minSeparation > characterRadius + targetRadius) + //if (minSeparation > 2 * agentRadius) + { + continue; + } + + /* Check if its the shortest */ + if (timeToCollision > 0 && timeToCollision < shortestTime) + { + shortestTime = timeToCollision; + firstTarget = r; + firstMinSeparation = minSeparation; + firstDistance = distance; + firstRelativePos = relativePos; + firstRelativeVel = relativeVel; + firstRadius = targetRadius; + } + } + + /* 2. Calculate the steering */ + + /* If we have no target then exit */ + if (firstTarget == null) + { + return acceleration; + } + + /* If we are going to collide with no separation or if we are already colliding then + * steer based on current position */ + if (firstMinSeparation <= 0 || firstDistance < characterRadius + firstRadius) + //if (firstMinSeparation <= 0 || firstDistance < 2 * agentRadius) + { + acceleration = transform.position - firstTarget.position; + } + /* Else calculate the future relative position */ + else + { + acceleration = firstRelativePos + firstRelativeVel * shortestTime; + } + + /* Avoid the target */ + acceleration.Normalize(); + acceleration *= maxAcceleration; + + return acceleration; + } +} diff --git a/Assets/Scripts/Movement/CollisionAvoidance.cs.meta b/Assets/Scripts/Movement/CollisionAvoidance.cs.meta new file mode 100644 index 0000000..af4b0d2 --- /dev/null +++ b/Assets/Scripts/Movement/CollisionAvoidance.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0d0fb7ad878c96643a9ef33951d933ba +timeCreated: 1445040328 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Movement/Evade.cs b/Assets/Scripts/Movement/Evade.cs new file mode 100644 index 0000000..b2f64f0 --- /dev/null +++ b/Assets/Scripts/Movement/Evade.cs @@ -0,0 +1,45 @@ +using UnityEngine; +using System.Collections; + +[RequireComponent(typeof(Flee))] +public class Evade : MonoBehaviour +{ + /* Maximum prediction time the pursue will predict in the future */ + public float maxPrediction = 1f; + + private Flee flee; + + // Use this for initialization + void Start() + { + flee = GetComponent(); + } + + public Vector3 getSteering(Rigidbody target) + { + /* Calculate the distance to the target */ + Vector3 displacement = target.position - transform.position; + float distance = displacement.magnitude; + + /* Get the targets's speed */ + float speed = target.velocity.magnitude; + + /* Calculate the prediction time */ + float prediction; + if (speed <= distance / maxPrediction) + { + prediction = maxPrediction; + } + else + { + prediction = distance / speed; + //Place the predicted position a little before the target reaches the character + prediction *= 0.9f; + } + + /* Put the target together based on where we think the target will be */ + Vector3 explicitTarget = target.position + target.velocity * prediction; + + return flee.getSteering(explicitTarget); + } +} diff --git a/Assets/Scripts/Movement/Evade.cs.meta b/Assets/Scripts/Movement/Evade.cs.meta new file mode 100644 index 0000000..6b51dac --- /dev/null +++ b/Assets/Scripts/Movement/Evade.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 52e7f349139dea54da032182166c26d8 +timeCreated: 1445141371 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Movement/Flee.cs b/Assets/Scripts/Movement/Flee.cs new file mode 100644 index 0000000..4156a53 --- /dev/null +++ b/Assets/Scripts/Movement/Flee.cs @@ -0,0 +1,66 @@ +using UnityEngine; +using System.Collections; + +[RequireComponent(typeof(Rigidbody))] +public class Flee : MonoBehaviour { + + public float panicDist = 3.5f; + + public bool decelerateOnStop = true; + + public float maxAcceleration = 10f; + + public float timeToTarget = 0.1f; + + private Rigidbody rb; + + // Use this for initialization + void Start () { + rb = GetComponent(); + } + + /* A flee steering behavior. Will return the steering for the current game object to flee a given position */ + public Vector3 getSteering(Vector3 targetPosition) + { + //Get the direction + Vector3 acceleration = transform.position - targetPosition; + + //If the target is far way then don't flee + if (acceleration.magnitude > panicDist) + { + //Slow down if we should decelerate on stop + if (decelerateOnStop && rb.velocity.magnitude > 0.001f) + { + //Decelerate to zero velocity in time to target amount of time + acceleration = -rb.velocity / timeToTarget; + + if (acceleration.magnitude > maxAcceleration) + { + acceleration = giveMaxAccel(acceleration); + } + + return acceleration; + } + else + { + rb.velocity = Vector2.zero; + return Vector3.zero; + } + } + + return giveMaxAccel(acceleration); + } + + private Vector3 giveMaxAccel(Vector3 v) + { + //Remove the z coordinate + v.z = 0; + + v.Normalize(); + + //Accelerate to the target + v *= maxAcceleration; + + return v; + } +} diff --git a/Assets/Scripts/Movement/Flee.cs.meta b/Assets/Scripts/Movement/Flee.cs.meta new file mode 100644 index 0000000..05e62de --- /dev/null +++ b/Assets/Scripts/Movement/Flee.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9cdf64bcab4d4d8468c92f1bc4b23f7c +timeCreated: 1445140127 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Movement/FollowPath.cs b/Assets/Scripts/Movement/FollowPath.cs new file mode 100644 index 0000000..8f475fd --- /dev/null +++ b/Assets/Scripts/Movement/FollowPath.cs @@ -0,0 +1,66 @@ +using UnityEngine; +using System.Collections; + +[RequireComponent (typeof (SteeringBasics))] +public class FollowPath : MonoBehaviour { + public float stopRadius = 0.005f; + + public float pathOffset = 0.71f; + + public float pathDirection = 1f; + + private SteeringBasics steeringBasics; + private Rigidbody rb; + + // Use this for initialization + void Start () { + steeringBasics = GetComponent (); + rb = GetComponent (); + } + + public Vector3 getSteering (LinePath path) { + return getSteering (path, false); + } + + public Vector3 getSteering (LinePath path, bool pathLoop) { + Vector3 targetPosition; + return getSteering(path, pathLoop, out targetPosition); + } + + public Vector3 getSteering (LinePath path, bool pathLoop, out Vector3 targetPosition) { + + // If the path has only one node then just go to that position; + if (path.Length == 1) { + targetPosition = path[0]; + } + // Else find the closest spot on the path to the character and go to that instead. + else { + if (!pathLoop) + { + /* Find the final destination of the character on this path */ + Vector2 finalDestination = (pathDirection > 0) ? path[path.Length - 1] : path[0]; + + /* If we are close enough to the final destination then either stop moving or reverse if + * the character is set to loop on paths */ + if (Vector2.Distance(transform.position, finalDestination) < stopRadius) + { + targetPosition = finalDestination; + + rb.velocity = Vector2.zero; + return Vector2.zero; + } + } + + /* Get the param for the closest position point on the path given the character's position */ + float param = path.getParam(transform.position); + + /* Move down the path */ + param += pathDirection * pathOffset; + + /* Set the target position */ + targetPosition = path.getPosition(param, pathLoop); + } + + return steeringBasics.arrive(targetPosition); + } +} diff --git a/Assets/Scripts/Movement/FollowPath.cs.meta b/Assets/Scripts/Movement/FollowPath.cs.meta new file mode 100644 index 0000000..f5ef768 --- /dev/null +++ b/Assets/Scripts/Movement/FollowPath.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 049423ef460e2524186c56ba0e274368 +timeCreated: 1440216999 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Movement/Hide.cs b/Assets/Scripts/Movement/Hide.cs new file mode 100644 index 0000000..6333b1a --- /dev/null +++ b/Assets/Scripts/Movement/Hide.cs @@ -0,0 +1,64 @@ +using UnityEngine; +using System.Collections; +using System.Collections.Generic; + +[RequireComponent(typeof(SteeringBasics))] +[RequireComponent(typeof(Evade))] +public class Hide : MonoBehaviour { + public float distanceFromBoundary = 0.6f; + + private SteeringBasics steeringBasics; + private Evade evade; + + // Use this for initialization + void Start () { + steeringBasics = GetComponent(); + evade = GetComponent(); + } + + public Vector3 getSteering(Rigidbody target, ICollection obstacles) + { + Vector3 bestHidingSpot; + return getSteering(target, obstacles, out bestHidingSpot); + } + + public Vector3 getSteering(Rigidbody target, ICollection obstacles, out Vector3 bestHidingSpot) + { + //Find the closest hiding spot + float distToClostest = Mathf.Infinity; + bestHidingSpot = Vector3.zero; + + foreach(Rigidbody r in obstacles) + { + Vector3 hidingSpot = getHidingPosition(r, target); + + float dist = Vector3.Distance(hidingSpot, transform.position); + + if(dist < distToClostest) + { + distToClostest = dist; + bestHidingSpot = hidingSpot; + } + } + + //If no hiding spot is found then just evade the enemy + if(distToClostest == Mathf.Infinity) + { + return evade.getSteering(target); + } + + //Debug.DrawLine(transform.position, bestHidingSpot); + + return steeringBasics.arrive(bestHidingSpot); + } + + private Vector3 getHidingPosition(Rigidbody obstacle, Rigidbody target) + { + float distAway = SteeringBasics.getBoundingRadius(obstacle.transform) + distanceFromBoundary; + + Vector3 dir = obstacle.position - target.position; + dir.Normalize(); + + return obstacle.position + dir * distAway; + } +} diff --git a/Assets/Scripts/Movement/Hide.cs.meta b/Assets/Scripts/Movement/Hide.cs.meta new file mode 100644 index 0000000..92f0b1c --- /dev/null +++ b/Assets/Scripts/Movement/Hide.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8303b41d5b5e59846808128b46019c95 +timeCreated: 1445294684 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Movement/LinePath.cs b/Assets/Scripts/Movement/LinePath.cs new file mode 100644 index 0000000..1c67b73 --- /dev/null +++ b/Assets/Scripts/Movement/LinePath.cs @@ -0,0 +1,193 @@ +using UnityEngine; +using System.Collections; +using System.Collections.Generic; +using System; + +[System.Serializable] +public class LinePath { + public Vector3[] nodes; + private float[] distances; + [System.NonSerialized] + public float maxDist; + + // Indexer declaration. + public Vector3 this[int i] + { + get + { + return nodes[i]; + } + + set + { + nodes[i] = value; + } + } + + public int Length + { + get { + return nodes.Length; + } + } + + public Vector3 endNode { + get { + return nodes[nodes.Length-1]; + } + } + + /* This function creates a path of line segments */ + public LinePath(Vector3[] nodes) { + this.nodes = nodes; + + calcDistances(); + } + + /* Loops through the path's nodes and determines how far each node in the path is + * from the starting node */ + public void calcDistances() { + distances = new float[nodes.Length]; + distances[0] = 0; + + for(var i = 0; i < nodes.Length - 1; i++) { + distances[i+1] = distances[i] + Vector3.Distance(nodes[i], nodes[i+1]); + } + + maxDist = distances[distances.Length-1]; + } + + /* Draws the path in the scene view */ + public void draw() { + for (int i = 0; i < nodes.Length-1; i++) { + Debug.DrawLine(nodes[i], nodes[i+1], Color.cyan, 0.0f, false); + } + } + + /* Gets the param for the closest point on the path given a position */ + public float getParam(Vector3 position) { + int closestSegment = getClosestSegment(position); + + float param = this.distances[closestSegment] + getParamForSegment(position, nodes[closestSegment], nodes[closestSegment+1]); + + return param; + } + + public int getClosestSegment(Vector3 position) { + /* Find the first point in the closest line segment to the path */ + float closestDist = distToSegment(position, nodes[0], nodes[1]); + int closestSegment = 0; + + for(int i = 1; i < nodes.Length - 1; i++) { + float dist = distToSegment(position, nodes[i], nodes[i+1]); + + if(dist <= closestDist) { + closestDist = dist; + closestSegment = i; + } + } + + return closestSegment; + } + + /* Given a param it gets the position on the path */ + public Vector3 getPosition(float param, bool pathLoop = false) { + /* Make sure the param is not past the beginning or end of the path */ + if (param < 0) { + param = (pathLoop) ? param + maxDist : 0; + } else if (param > maxDist) { + param = (pathLoop) ? param - maxDist : maxDist; + } + + /* Find the first node that is farther than given param */ + int i = 0; + for(; i < distances.Length; i++) { + if(distances[i] > param) { + break; + } + } + + /* Convert it to the first node of the line segment that the param is in */ + if (i > distances.Length - 2) { + i = distances.Length - 2; + } else { + i -= 1; + } + + /* Get how far along the line segment the param is */ + float t = (param - distances[i]) / Vector3.Distance(nodes[i], nodes[i+1]); + + /* Get the position of the param */ + return Vector3.Lerp(nodes[i], nodes[i+1], t); + } + + /* Gives the distance of a point to a line segment. + * p is the point, v and w are the two points of the line segment */ + private static float distToSegment(Vector3 p, Vector3 v, Vector3 w) { + Vector3 vw = w - v; + + float l2 = Vector3.Dot(vw, vw); + + if (l2 == 0) { + return Vector3.Distance(p, v); + } + + float t = Vector3.Dot(p - v, vw) / l2; + + if (t < 0) { + return Vector3.Distance(p, v); + } + + if (t > 1) { + return Vector3.Distance(p, w); + } + + Vector3 closestPoint = Vector3.Lerp(v, w, t); + + return Vector3.Distance(p, closestPoint); + } + + /* Finds the param for the closest point on the segment vw given the point p */ + private static float getParamForSegment(Vector3 p, Vector3 v, Vector3 w) { + Vector3 vw = w - v; + + float l2 = Vector3.Dot(vw, vw); + + if (l2 == 0) { + return 0; + } + + float t = Vector3.Dot(p - v, vw) / l2; + + if(t < 0) { + t = 0; + } else if (t > 1) { + t = 1; + } + + return t * Mathf.Sqrt(l2); + } + + public void removeNode(int i ) { + Vector3[] newNodes = new Vector3[nodes.Length - 1]; + + int newNodesIndex = 0; + for (int j = 0; j < newNodes.Length; j++) { + if(j != i) { + newNodes[newNodesIndex] = nodes[j]; + newNodesIndex++; + } + } + + this.nodes = newNodes; + + calcDistances(); + } + + public void reversePath() + { + Array.Reverse(nodes); + + calcDistances(); + } +} diff --git a/Assets/Scripts/Movement/LinePath.cs.meta b/Assets/Scripts/Movement/LinePath.cs.meta new file mode 100644 index 0000000..525ff97 --- /dev/null +++ b/Assets/Scripts/Movement/LinePath.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 973b14114335987478bf67e5fd96e242 +timeCreated: 1444774557 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Movement/NearSensor.cs b/Assets/Scripts/Movement/NearSensor.cs new file mode 100644 index 0000000..f4ab3af --- /dev/null +++ b/Assets/Scripts/Movement/NearSensor.cs @@ -0,0 +1,16 @@ +using UnityEngine; +using System.Collections; +using System.Collections.Generic; + +public class NearSensor : MonoBehaviour { + + public HashSet targets = new HashSet(); + + void OnTriggerEnter(Collider other) { + targets.Add (other.GetComponent()); + } + + void OnTriggerExit(Collider other) { + targets.Remove (other.GetComponent()); + } +} diff --git a/Assets/Scripts/Movement/NearSensor.cs.meta b/Assets/Scripts/Movement/NearSensor.cs.meta new file mode 100644 index 0000000..8d49322 --- /dev/null +++ b/Assets/Scripts/Movement/NearSensor.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6cfdaa6b4aa86854cad04292e279f62e +timeCreated: 1445040604 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Movement/OffsetPursuit.cs b/Assets/Scripts/Movement/OffsetPursuit.cs new file mode 100644 index 0000000..19a50e5 --- /dev/null +++ b/Assets/Scripts/Movement/OffsetPursuit.cs @@ -0,0 +1,54 @@ +using UnityEngine; +using System.Collections; + +[RequireComponent(typeof(SteeringBasics))] +public class OffsetPursuit : MonoBehaviour { + /* Maximum prediction time the pursue will predict in the future */ + public float maxPrediction = 1f; + + private Rigidbody rb; + private SteeringBasics steeringBasics; + + // Use this for initialization + void Start() + { + rb = GetComponent(); + steeringBasics = GetComponent(); + } + + public Vector3 getSteering(Rigidbody target, Vector3 offset) + { + Vector3 targetPos; + return getSteering(target, offset, out targetPos); + } + + public Vector3 getSteering(Rigidbody target, Vector3 offset, out Vector3 targetPos) + { + Vector3 worldOffsetPos = target.position + target.transform.TransformDirection(offset); + + //Debug.DrawLine(transform.position, worldOffsetPos); + + /* Calculate the distance to the offset point */ + Vector3 displacement = worldOffsetPos - transform.position; + float distance = displacement.magnitude; + + /* Get the character's speed */ + float speed = rb.velocity.magnitude; + + /* Calculate the prediction time */ + float prediction; + if (speed <= distance / maxPrediction) + { + prediction = maxPrediction; + } + else + { + prediction = distance / speed; + } + + /* Put the target together based on where we think the target will be */ + targetPos = worldOffsetPos + target.velocity * prediction; + + return steeringBasics.arrive(targetPos); + } +} diff --git a/Assets/Scripts/Movement/OffsetPursuit.cs.meta b/Assets/Scripts/Movement/OffsetPursuit.cs.meta new file mode 100644 index 0000000..6e9ac47 --- /dev/null +++ b/Assets/Scripts/Movement/OffsetPursuit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5663dbf892c30d74caacee862f4f7134 +timeCreated: 1445384830 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Movement/Pursue.cs b/Assets/Scripts/Movement/Pursue.cs new file mode 100644 index 0000000..f0645ee --- /dev/null +++ b/Assets/Scripts/Movement/Pursue.cs @@ -0,0 +1,43 @@ +using UnityEngine; +using System.Collections; + +[RequireComponent(typeof(SteeringBasics))] +public class Pursue : MonoBehaviour +{ + /* Maximum prediction time the pursue will predict in the future */ + public float maxPrediction = 1f; + + private Rigidbody rb; + private SteeringBasics steeringBasics; + + // Use this for initialization + void Start () { + rb = GetComponent(); + steeringBasics = GetComponent(); + } + + public Vector3 getSteering (Rigidbody target) { + /* Calculate the distance to the target */ + Vector3 displacement = target.position - transform.position; + float distance = displacement.magnitude; + + /* Get the character's speed */ + float speed = rb.velocity.magnitude; + + /* Calculate the prediction time */ + float prediction; + if (speed <= distance / maxPrediction) + { + prediction = maxPrediction; + } + else + { + prediction = distance / speed; + } + + /* Put the target together based on where we think the target will be */ + Vector3 explicitTarget = target.position + target.velocity*prediction; + + return steeringBasics.seek(explicitTarget); + } +} diff --git a/Assets/Scripts/Movement/Pursue.cs.meta b/Assets/Scripts/Movement/Pursue.cs.meta new file mode 100644 index 0000000..ca01694 --- /dev/null +++ b/Assets/Scripts/Movement/Pursue.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e2da78e0f74f9cf449361cf180272705 +timeCreated: 1445138555 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Movement/Separation.cs b/Assets/Scripts/Movement/Separation.cs new file mode 100644 index 0000000..ea814b4 --- /dev/null +++ b/Assets/Scripts/Movement/Separation.cs @@ -0,0 +1,48 @@ +using UnityEngine; +using System.Collections; +using System.Collections.Generic; + +public class Separation : MonoBehaviour { + + /* The maximum acceleration for separation */ + public float sepMaxAcceleration = 25; + + /* This should be the maximum separation distance possible between a separation + * target and the character. + * So it should be: separation sensor radius + max target radius */ + public float maxSepDist = 1f; + + private float boundingRadius; + + // Use this for initialization + void Start() + { + boundingRadius = SteeringBasics.getBoundingRadius(transform); + } + + public Vector3 getSteering(ICollection targets) + { + Vector3 acceleration = Vector3.zero; + + foreach (Rigidbody r in targets) + { + /* Get the direction and distance from the target */ + Vector3 direction = transform.position - r.position; + float dist = direction.magnitude; + + if (dist < maxSepDist) + { + float targetRadius = SteeringBasics.getBoundingRadius(r.transform); + + /* Calculate the separation strength (can be changed to use inverse square law rather than linear) */ + var strength = sepMaxAcceleration * (maxSepDist - dist) / (maxSepDist - boundingRadius - targetRadius); + + /* Added separation acceleration to the existing steering */ + direction.Normalize(); + acceleration += direction * strength; + } + } + + return acceleration; + } +} diff --git a/Assets/Scripts/Movement/Separation.cs.meta b/Assets/Scripts/Movement/Separation.cs.meta new file mode 100644 index 0000000..89efe6a --- /dev/null +++ b/Assets/Scripts/Movement/Separation.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4b54d0c5e57344f4994540c2b983849a +timeCreated: 1445542880 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Movement/SteeringBasics.cs b/Assets/Scripts/Movement/SteeringBasics.cs new file mode 100644 index 0000000..6a0a004 --- /dev/null +++ b/Assets/Scripts/Movement/SteeringBasics.cs @@ -0,0 +1,201 @@ +using UnityEngine; +using System.Collections; + +/* A helper class for steering a game object in 2D */ +using System.Collections.Generic; + + +[RequireComponent (typeof (Rigidbody))] +public class SteeringBasics : MonoBehaviour { + + public float maxVelocity = 3.5f; + + /* The maximum acceleration */ + public float maxAcceleration = 10f; + + /* The radius from the target that means we are close enough and have arrived */ + public float targetRadius = 0.005f; + + /* The radius from the target where we start to slow down */ + public float slowRadius = 1f; + + /* The time in which we want to achieve the targetSpeed */ + public float timeToTarget = 0.1f; + + public float turnSpeed = 20f; + + private Rigidbody rb; + + public bool smoothing = true; + public int numSamplesForSmoothing = 5; + private Queue velocitySamples = new Queue(); + + // Use this for initialization + void Start () { + rb = GetComponent (); + } + + /* Updates the velocity of the current game object by the given linear acceleration */ + public void steer(Vector3 linearAcceleration) { + rb.velocity += linearAcceleration * Time.deltaTime; + + if (rb.velocity.magnitude > maxVelocity) { + rb.velocity = rb.velocity.normalized * maxVelocity; + } + } + + public void steer(Vector2 linearAcceleration) { + this.steer (new Vector3 (linearAcceleration.x, linearAcceleration.y, 0)); + } + + /* A seek steering behavior. Will return the steering for the current game object to seek a given position */ + public Vector3 seek(Vector3 targetPosition, float maxSeekAccel) { + //Get the direction + Vector3 acceleration = targetPosition - transform.position; + + //Remove the z coordinate + acceleration.z = 0; + + acceleration.Normalize (); + + //Accelerate to the target + acceleration *= maxSeekAccel; + + return acceleration; + } + + public Vector3 seek(Vector3 targetPosition) + { + return seek(targetPosition, maxAcceleration); + } + + /* Makes the current game object look where he is going */ + public void lookWhereYoureGoing() { + Vector2 direction = rb.velocity; + + if (smoothing) { + if (velocitySamples.Count == numSamplesForSmoothing) { + velocitySamples.Dequeue (); + } + + velocitySamples.Enqueue (rb.velocity); + + direction = Vector2.zero; + + foreach (Vector2 v in velocitySamples) { + direction += v; + } + + direction /= velocitySamples.Count; + } + + lookAtDirection (direction); + } + + public void lookAtDirection(Vector2 direction) { + direction.Normalize(); + + // If we have a non-zero direction then look towards that direciton otherwise do nothing + if (direction.sqrMagnitude > 0.001f) { + float toRotation = (Mathf.Atan2 (direction.y, direction.x) * Mathf.Rad2Deg); + float rotation = Mathf.LerpAngle(transform.rotation.eulerAngles.z, toRotation, Time.deltaTime*turnSpeed); + + transform.rotation = Quaternion.Euler(0, 0, rotation); + } + } + + public void lookAtDirection(Quaternion toRotation) + { + lookAtDirection(toRotation.eulerAngles.z); + } + + public void lookAtDirection(float toRotation) + { + float rotation = Mathf.LerpAngle(transform.rotation.eulerAngles.z, toRotation, Time.deltaTime * turnSpeed); + + transform.rotation = Quaternion.Euler(0, 0, rotation); + } + + /* Returns the steering for a character so it arrives at the target */ + public Vector3 arrive(Vector3 targetPosition) { + /* Get the right direction for the linear acceleration */ + Vector3 targetVelocity = targetPosition - transform.position; + + // Remove the z coordinate + targetVelocity.z = 0; + + /* Get the distance to the target */ + float dist = targetVelocity.magnitude; + + /* If we are within the stopping radius then stop */ + if(dist < targetRadius) { + rb.velocity = Vector2.zero; + return Vector2.zero; + } + + /* Calculate the target speed, full speed at slowRadius distance and 0 speed at 0 distance */ + float targetSpeed; + if(dist > slowRadius) { + targetSpeed = maxVelocity; + } else { + targetSpeed = maxVelocity * (dist / slowRadius); + } + + /* Give targetVelocity the correct speed */ + targetVelocity.Normalize(); + targetVelocity *= targetSpeed; + + /* Calculate the linear acceleration we want */ + Vector3 acceleration = targetVelocity - new Vector3(rb.velocity.x, rb.velocity.y, 0); + /* + Rather than accelerate the character to the correct speed in 1 second, + accelerate so we reach the desired speed in timeToTarget seconds + (if we were to actually accelerate for the full timeToTarget seconds). + */ + acceleration *= 1/timeToTarget; + + /* Make sure we are accelerating at max acceleration */ + if(acceleration.magnitude > maxAcceleration) { + acceleration.Normalize(); + acceleration *= maxAcceleration; + } + + return acceleration; + } + + public Vector3 interpose(Rigidbody target1, Rigidbody target2) + { + Vector3 midPoint = (target1.position + target2.position) / 2; + + float timeToReachMidPoint = Vector3.Distance(midPoint, transform.position) / maxVelocity; + + Vector3 futureTarget1Pos = target1.position + target1.velocity * timeToReachMidPoint; + Vector3 futureTarget2Pos = target2.position + target2.velocity * timeToReachMidPoint; + + midPoint = (futureTarget1Pos + futureTarget2Pos) / 2; + + return arrive(midPoint); + } + + /* Checks to see if the target is in front of the character */ + public bool isInFront(Vector3 target) + { + return isFacing(target, 0); + } + + public bool isFacing(Vector3 target, float cosineValue) { + Vector2 facing = transform.right.normalized; + + Vector2 directionToTarget = (target - transform.position); + directionToTarget.Normalize(); + + return Vector2.Dot(facing, directionToTarget) >= cosineValue; + } + + public static float getBoundingRadius(Transform t) + { + SphereCollider col = t.GetComponent(); + return Mathf.Max(t.localScale.x, t.localScale.y, t.localScale.z) * col.radius; + } + +} \ No newline at end of file diff --git a/Assets/Scripts/Movement/SteeringBasics.cs.meta b/Assets/Scripts/Movement/SteeringBasics.cs.meta new file mode 100644 index 0000000..fc01f4c --- /dev/null +++ b/Assets/Scripts/Movement/SteeringBasics.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a6f58141e9f357e448fd2fa6f1afc1f7 +timeCreated: 1440217000 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Movement/VelocityMatch.cs b/Assets/Scripts/Movement/VelocityMatch.cs new file mode 100644 index 0000000..0f00080 --- /dev/null +++ b/Assets/Scripts/Movement/VelocityMatch.cs @@ -0,0 +1,64 @@ +using UnityEngine; +using System.Collections; +using System.Collections.Generic; + +[RequireComponent(typeof(SteeringBasics))] +public class VelocityMatch : MonoBehaviour +{ + + public float facingCosine = 90; + public float timeToTarget = 0.1f; + public float maxAcceleration = 4f; + + private float facingCosineVal; + + private Rigidbody rb; + private SteeringBasics steeringBasics; + + // Use this for initialization + void Start() + { + facingCosineVal = Mathf.Cos(facingCosine * Mathf.Deg2Rad); + + rb = GetComponent(); + steeringBasics = GetComponent(); + } + + public Vector3 getSteering(ICollection targets) + { + Vector3 accel = Vector3.zero; + int count = 0; + + foreach (Rigidbody r in targets) + { + if (steeringBasics.isFacing(r.position, facingCosineVal)) + { + /* Calculate the acceleration we want to match this target */ + Vector3 a = r.velocity - rb.velocity; + /* + Rather than accelerate the character to the correct speed in 1 second, + accelerate so we reach the desired speed in timeToTarget seconds + (if we were to actually accelerate for the full timeToTarget seconds). + */ + a = a / timeToTarget; + + accel += a; + + count++; + } + } + + if (count > 0) + { + accel = accel / count; + + /* Make sure we are accelerating at max acceleration */ + if (accel.magnitude > maxAcceleration) + { + accel = accel.normalized * maxAcceleration; + } + } + + return accel; + } +} diff --git a/Assets/Scripts/Movement/VelocityMatch.cs.meta b/Assets/Scripts/Movement/VelocityMatch.cs.meta new file mode 100644 index 0000000..16485dd --- /dev/null +++ b/Assets/Scripts/Movement/VelocityMatch.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 712fa36ac13bbc043b7aabcad738e7dc +timeCreated: 1445675196 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Movement/WallAvoidance.cs b/Assets/Scripts/Movement/WallAvoidance.cs new file mode 100644 index 0000000..55801d0 --- /dev/null +++ b/Assets/Scripts/Movement/WallAvoidance.cs @@ -0,0 +1,97 @@ +using UnityEngine; +using System.Collections; + +[RequireComponent(typeof(SteeringBasics))] +public class WallAvoidance : MonoBehaviour { + + /* How far ahead the ray should extend */ + public float mainWhiskerLen = 1.25f; + + /* The distance away from the collision that we wish go */ + public float wallAvoidDistance = 0.5f; + + public float sideWhiskerLen = 0.701f; + + public float sideWhiskerAngle = 45f; + + public float maxAcceleration = 40f; + + private Rigidbody rb; + private SteeringBasics steeringBasics; + + // Use this for initialization + void Start () { + rb = GetComponent(); + steeringBasics = GetComponent(); + } + + public Vector3 getSteering() + { + return getSteering(rb.velocity); + } + + public Vector3 getSteering(Vector3 facingDir) + { + Vector3 acceleration = Vector3.zero; + + /* Creates the ray direction vector */ + Vector3[] rayDirs = new Vector3[3]; + rayDirs[0] = facingDir.normalized; + + float orientation = Mathf.Atan2(rb.velocity.y, rb.velocity.x); + + rayDirs[1] = orientationToVector(orientation + sideWhiskerAngle * Mathf.Deg2Rad); + rayDirs[2] = orientationToVector(orientation - sideWhiskerAngle * Mathf.Deg2Rad); + + RaycastHit hit; + + /* If no collision do nothing */ + if (!findObstacle(rayDirs, out hit)) + { + return acceleration; + } + + /* Create a target away from the wall to seek */ + Vector3 targetPostition = hit.point + hit.normal * wallAvoidDistance; + + /* If velocity and the collision normal are parallel then move the target a bit to + the left or right of the normal */ + Vector3 cross = Vector3.Cross(rb.velocity, hit.normal); + if (cross.magnitude < 0.005f) + { + targetPostition = targetPostition + new Vector3(-hit.normal.y, hit.normal.x, hit.normal.z); + } + + return steeringBasics.seek(targetPostition, maxAcceleration); + } + + /* Returns the orientation as a unit vector */ + private Vector3 orientationToVector(float orientation) + { + return new Vector3(Mathf.Cos(orientation), Mathf.Sin(orientation), 0); + } + + private bool findObstacle(Vector3[] rayDirs, out RaycastHit firstHit) + { + firstHit = new RaycastHit(); + bool foundObs = false; + + for (int i = 0; i < rayDirs.Length; i++) + { + float rayDist = (i == 0) ? mainWhiskerLen : sideWhiskerLen; + + RaycastHit hit; + + if (Physics.Raycast(transform.position, rayDirs[i], out hit, rayDist)) + { + foundObs = true; + firstHit = hit; + break; + } + + //Debug.DrawLine(transform.position, transform.position + rayDirs[i] * rayDist); + } + + return foundObs; + } +} diff --git a/Assets/Scripts/Movement/WallAvoidance.cs.meta b/Assets/Scripts/Movement/WallAvoidance.cs.meta new file mode 100644 index 0000000..4b4b15b --- /dev/null +++ b/Assets/Scripts/Movement/WallAvoidance.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e008bb997f9e8cc42a7861ed1e5b45ea +timeCreated: 1445034832 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Movement/Wander1.cs b/Assets/Scripts/Movement/Wander1.cs new file mode 100644 index 0000000..a42b796 --- /dev/null +++ b/Assets/Scripts/Movement/Wander1.cs @@ -0,0 +1,61 @@ +using UnityEngine; +using System.Collections; + +[RequireComponent(typeof(SteeringBasics))] +public class Wander1 : MonoBehaviour { + + /* The forward offset of the wander square */ + public float wanderOffset = 1.5f; + + /* The radius of the wander square */ + public float wanderRadius = 4; + + /* The rate at which the wander orientation can change */ + public float wanderRate = 0.4f; + + private float wanderOrientation = 0; + + private SteeringBasics steeringBasics; + + //private GameObject debugRing; + + void Start() { + // DebugDraw debugDraw = gameObject.GetComponent (); + // debugRing = debugDraw.createRing (Vector3.zero, wanderRadius); + + steeringBasics = GetComponent (); + } + + public Vector3 getSteering() { + float characterOrientation = transform.rotation.eulerAngles.z * Mathf.Deg2Rad; + + /* Update the wander orientation */ + wanderOrientation += randomBinomial() * wanderRate; + + /* Calculate the combined target orientation */ + float targetOrientation = wanderOrientation + characterOrientation; + + /* Calculate the center of the wander circle */ + Vector3 targetPosition = transform.position + (orientationToVector (characterOrientation) * wanderOffset); + + //debugRing.transform.position = targetPosition; + + /* Calculate the target position */ + targetPosition = targetPosition + (orientationToVector(targetOrientation) * wanderRadius); + + //Debug.DrawLine (transform.position, targetPosition); + + return steeringBasics.seek (targetPosition); + } + + /* Returns a random number between -1 and 1. Values around zero are more likely. */ + float randomBinomial() { + return Random.value - Random.value; + } + + /* Returns the orientation as a unit vector */ + Vector3 orientationToVector(float orientation) { + return new Vector3(Mathf.Cos(orientation), Mathf.Sin(orientation), 0); + } + +} diff --git a/Assets/Scripts/Movement/Wander1.cs.meta b/Assets/Scripts/Movement/Wander1.cs.meta new file mode 100644 index 0000000..1661588 --- /dev/null +++ b/Assets/Scripts/Movement/Wander1.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 22a41feec586bae4ba2177d8457b7fa2 +timeCreated: 1444782458 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Movement/Wander2.cs b/Assets/Scripts/Movement/Wander2.cs new file mode 100644 index 0000000..df1da0c --- /dev/null +++ b/Assets/Scripts/Movement/Wander2.cs @@ -0,0 +1,49 @@ +using UnityEngine; +using System.Collections; + +public class Wander2 : MonoBehaviour { + + public float wanderRadius = 1.2f; + + public float wanderDistance = 2f; + + //maximum amount of random displacement a second + public float wanderJitter = 40f; + + private Vector3 wanderTarget; + + private SteeringBasics steeringBasics; + + void Start() + { + //stuff for the wander behavior + float theta = Random.value * 2 * Mathf.PI; + + //create a vector to a target position on the wander circle + wanderTarget = new Vector3(wanderRadius * Mathf.Cos(theta), wanderRadius * Mathf.Sin(theta), 0f); + + steeringBasics = GetComponent(); + } + + public Vector3 getSteering() + { + //get the jitter for this time frame + float jitter = wanderJitter * Time.deltaTime; + + //add a small random vector to the target's position + wanderTarget += new Vector3(Random.Range(-1f, 1f) * jitter, Random.Range(-1f, 1f) * jitter, 0f); + + //make the wanderTarget fit on the wander circle again + wanderTarget.Normalize(); + wanderTarget *= wanderRadius; + + //move the target in front of the character + Vector3 targetPosition = transform.position + transform.right * wanderDistance + wanderTarget; + + //Debug.DrawLine(transform.position, targetPosition); + + return steeringBasics.seek(targetPosition); + } + + +} diff --git a/Assets/Scripts/Movement/Wander2.cs.meta b/Assets/Scripts/Movement/Wander2.cs.meta new file mode 100644 index 0000000..56f0791 --- /dev/null +++ b/Assets/Scripts/Movement/Wander2.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b5943b3ef333d3b45b456e9a8ce26d40 +timeCreated: 1444786057 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/OffsetPursuitUnit.cs b/Assets/Scripts/OffsetPursuitUnit.cs new file mode 100644 index 0000000..c62a602 --- /dev/null +++ b/Assets/Scripts/OffsetPursuitUnit.cs @@ -0,0 +1,44 @@ +using UnityEngine; +using System.Collections; + +public class OffsetPursuitUnit : MonoBehaviour { + + public Rigidbody target; + public Vector3 offset; + public float groupLookDist = 1.5f; + + private SteeringBasics steeringBasics; + private OffsetPursuit offsetPursuit; + private Separation separation; + + private NearSensor sensor; + + // Use this for initialization + void Start() + { + steeringBasics = GetComponent(); + offsetPursuit = GetComponent(); + separation = GetComponent(); + + sensor = transform.Find("SeparationSensor").GetComponent(); + } + + // Update is called once per frame + void LateUpdate() + { + Vector3 targetPos; + Vector3 offsetAccel = offsetPursuit.getSteering(target, offset, out targetPos); + Vector3 sepAccel = separation.getSteering(sensor.targets); + + steeringBasics.steer(offsetAccel + sepAccel); + + /* If we are still arriving then look where we are going, else look the same direction as our formation target */ + if (Vector3.Distance(transform.position, targetPos) > groupLookDist) + { + steeringBasics.lookWhereYoureGoing(); + } else + { + steeringBasics.lookAtDirection(target.rotation); + } + } +} diff --git a/Assets/Scripts/OffsetPursuitUnit.cs.meta b/Assets/Scripts/OffsetPursuitUnit.cs.meta new file mode 100644 index 0000000..b5c8d3c --- /dev/null +++ b/Assets/Scripts/OffsetPursuitUnit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 06dca02ef11e90749b6ab44ba79f30da +timeCreated: 1445384844 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/PursueUnit.cs b/Assets/Scripts/PursueUnit.cs new file mode 100644 index 0000000..82f175b --- /dev/null +++ b/Assets/Scripts/PursueUnit.cs @@ -0,0 +1,24 @@ +using UnityEngine; +using System.Collections; + +public class PursueUnit : MonoBehaviour { + + public Rigidbody target; + + private SteeringBasics steeringBasics; + private Pursue pursue; + + // Use this for initialization + void Start () { + steeringBasics = GetComponent(); + pursue = GetComponent(); + } + + // Update is called once per frame + void Update () { + Vector3 accel = pursue.getSteering(target); + + steeringBasics.steer(accel); + steeringBasics.lookWhereYoureGoing(); + } +} diff --git a/Assets/Scripts/PursueUnit.cs.meta b/Assets/Scripts/PursueUnit.cs.meta new file mode 100644 index 0000000..6888227 --- /dev/null +++ b/Assets/Scripts/PursueUnit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 28a5ea66325b4b34bb7fdd2c5706ca3e +timeCreated: 1445138563 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/ScreenBoundary.cs b/Assets/Scripts/ScreenBoundary.cs new file mode 100644 index 0000000..a0dafbc --- /dev/null +++ b/Assets/Scripts/ScreenBoundary.cs @@ -0,0 +1,45 @@ +using UnityEngine; +using System.Collections; + +public class ScreenBoundary : MonoBehaviour { + + private Vector3 bottomLeft; + private Vector3 topRight; + private Vector3 widthHeight; + + // Use this for initialization + void Start () { + float z = -1*Camera.main.transform.position.z; + + bottomLeft = Camera.main.ViewportToWorldPoint(new Vector3(0, 0, z)); + topRight = Camera.main.ViewportToWorldPoint(new Vector3(1, 1, z)); + widthHeight = topRight - bottomLeft; + + transform.localScale = new Vector3(widthHeight.x, widthHeight.y, transform.localScale.z); + } + + void OnTriggerStay(Collider other) + { + Transform t = other.transform; + + if (t.position.x < bottomLeft.x) + { + t.position = new Vector3(t.position.x + widthHeight.x, t.position.y, t.position.z); + } + + if (t.position.x > topRight.x) + { + t.position = new Vector3(t.position.x - widthHeight.x, t.position.y, t.position.z); + } + + if (t.position.y < bottomLeft.y) + { + t.position = new Vector3(t.position.x, t.position.y + widthHeight.y, t.position.z); + } + + if (t.position.y > topRight.y) + { + t.position = new Vector3(t.position.x, t.position.y - widthHeight.y, t.position.z); + } + } +} diff --git a/Assets/Scripts/ScreenBoundary.cs.meta b/Assets/Scripts/ScreenBoundary.cs.meta new file mode 100644 index 0000000..f83049f --- /dev/null +++ b/Assets/Scripts/ScreenBoundary.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 69e649a4f3e436244b1498ab2c59107d +timeCreated: 1445036316 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/SeekUnit.cs b/Assets/Scripts/SeekUnit.cs new file mode 100644 index 0000000..1655374 --- /dev/null +++ b/Assets/Scripts/SeekUnit.cs @@ -0,0 +1,22 @@ +using UnityEngine; +using System.Collections; + +public class SeekUnit : MonoBehaviour { + + public Transform target; + + private SteeringBasics steeringBasics; + + // Use this for initialization + void Start () { + steeringBasics = GetComponent(); + } + + // Update is called once per frame + void Update () { + Vector3 accel = steeringBasics.seek(target.position); + + steeringBasics.steer(accel); + steeringBasics.lookWhereYoureGoing(); + } +} diff --git a/Assets/Scripts/SeekUnit.cs.meta b/Assets/Scripts/SeekUnit.cs.meta new file mode 100644 index 0000000..13cb983 --- /dev/null +++ b/Assets/Scripts/SeekUnit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4ae73ab1d415c7c4a9ffbd954f482d15 +timeCreated: 1445123948 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Spawner.cs b/Assets/Scripts/Spawner.cs new file mode 100644 index 0000000..50672c2 --- /dev/null +++ b/Assets/Scripts/Spawner.cs @@ -0,0 +1,112 @@ +using UnityEngine; +using System.Collections; +using System.Collections.Generic; + +public class Spawner : MonoBehaviour { + + public Transform obj; + public Vector2 objectSizeRange = new Vector2(1, 2); + public int numberOfObjects = 10; + public bool randomizeOrientation = false; + public float boundaryPadding = 1f; + public float spaceBetweenObjects = 1f; + public Transform[] thingsToAvoid; + + private Vector3 bottomLeft; + private Vector3 widthHeight; + + private float[] thingsToAvoidRadius; + + [System.NonSerialized] + public List objs = new List(); + + // Use this for initialization + void Start() + { + //Find the size of the map + float z = -1 * Camera.main.transform.position.z; + + bottomLeft = Camera.main.ViewportToWorldPoint(new Vector3(0, 0, z)); + Vector3 topRight = Camera.main.ViewportToWorldPoint(new Vector3(1, 1, z)); + widthHeight = topRight - bottomLeft; + + //Find the radius' of the things to avoid + thingsToAvoidRadius = new float[thingsToAvoid.Length]; + + for (int i = 0; i < thingsToAvoid.Length; i++) + { + thingsToAvoidRadius[i] = SteeringBasics.getBoundingRadius(thingsToAvoid[i].transform); + } + + //Create the create the objects + for (int i = 0; i < numberOfObjects; i++) + { + //Try to place the objects multiple times before giving up + for(int j = 0; j < 10; j++) + { + if(tryToCreateObject()) + { + break; + } + } + } + } + + private bool tryToCreateObject() + { + float size = Random.Range(objectSizeRange.x, objectSizeRange.y); + float halfSize = size / 2f; + + Vector3 pos = new Vector3(); + pos.x = bottomLeft.x + Random.Range(boundaryPadding + halfSize, widthHeight.x - boundaryPadding - halfSize); + pos.y = bottomLeft.y + Random.Range(boundaryPadding + halfSize, widthHeight.y - boundaryPadding - halfSize); + + if(canPlaceObject(halfSize, pos)) + { + Transform t = Instantiate(obj, pos, Quaternion.identity) as Transform; + t.localScale = new Vector3(size, size, obj.localScale.z); + + if(randomizeOrientation) + { + Vector3 euler = transform.eulerAngles; + euler.z = Random.Range(0f, 360f); + transform.eulerAngles = euler; + } + + objs.Add(t.GetComponent()); + + return true; + } + + return false; + } + + private bool canPlaceObject(float halfSize, Vector3 pos) + { + //Make sure it does not overlap with any thing to avoid + for (int i = 0; i < thingsToAvoid.Length; i++) + { + float dist = Vector3.Distance(thingsToAvoid[i].position, pos); + + if(dist < halfSize + thingsToAvoidRadius[i]) + { + return false; + } + } + + //Make sure it does not overlap with any existing object + foreach(Rigidbody o in objs) + { + float dist = Vector3.Distance(o.position, pos); + + float oRadius = SteeringBasics.getBoundingRadius(o.transform); + + if (dist < oRadius + spaceBetweenObjects + halfSize) + { + return false; + } + } + + return true; + } +} diff --git a/Assets/Scripts/Spawner.cs.meta b/Assets/Scripts/Spawner.cs.meta new file mode 100644 index 0000000..b8522fe --- /dev/null +++ b/Assets/Scripts/Spawner.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b337c53d2671c0a42aea40f4e5df0ae2 +timeCreated: 1445210872 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/WallAvoidanceUnit.cs b/Assets/Scripts/WallAvoidanceUnit.cs new file mode 100644 index 0000000..87af0c7 --- /dev/null +++ b/Assets/Scripts/WallAvoidanceUnit.cs @@ -0,0 +1,48 @@ +using UnityEngine; +using System.Collections; + +public class WallAvoidanceUnit: MonoBehaviour +{ + + public LinePath path; + + private SteeringBasics steeringBasics; + private WallAvoidance wallAvoidance; + private FollowPath followPath; + + // Use this for initialization + void Start() + { + path.calcDistances(); + + steeringBasics = GetComponent(); + wallAvoidance = GetComponent(); + followPath = GetComponent(); + } + + // Update is called once per frame + void Update() + { + if (isAtEndOfPath()) + { + path.reversePath(); + } + + Vector3 accel = wallAvoidance.getSteering(); + + if (accel.magnitude < 0.005f) + { + accel = followPath.getSteering(path); + } + + steeringBasics.steer(accel); + steeringBasics.lookWhereYoureGoing(); + + path.draw(); + } + + public bool isAtEndOfPath() + { + return Vector3.Distance(path.endNode, transform.position) < followPath.stopRadius; + } +} diff --git a/Assets/Scripts/WallAvoidanceUnit.cs.meta b/Assets/Scripts/WallAvoidanceUnit.cs.meta new file mode 100644 index 0000000..a7c6a83 --- /dev/null +++ b/Assets/Scripts/WallAvoidanceUnit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1e09b033aa7b983469142324db471025 +timeCreated: 1444865876 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Wander1Unit.cs b/Assets/Scripts/Wander1Unit.cs new file mode 100644 index 0000000..8446606 --- /dev/null +++ b/Assets/Scripts/Wander1Unit.cs @@ -0,0 +1,22 @@ +using UnityEngine; +using System.Collections; + +public class Wander1Unit : MonoBehaviour { + + private SteeringBasics steeringBasics; + private Wander1 wander; + + // Use this for initialization + void Start () { + steeringBasics = GetComponent(); + wander = GetComponent(); + } + + // Update is called once per frame + void Update () { + Vector3 accel = wander.getSteering(); + + steeringBasics.steer(accel); + steeringBasics.lookWhereYoureGoing(); + } +} diff --git a/Assets/Scripts/Wander1Unit.cs.meta b/Assets/Scripts/Wander1Unit.cs.meta new file mode 100644 index 0000000..488cf93 --- /dev/null +++ b/Assets/Scripts/Wander1Unit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9101efdc6414c2c48b7e2db10478de53 +timeCreated: 1444784704 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Wander2Unit.cs b/Assets/Scripts/Wander2Unit.cs new file mode 100644 index 0000000..5749746 --- /dev/null +++ b/Assets/Scripts/Wander2Unit.cs @@ -0,0 +1,25 @@ +using UnityEngine; +using System.Collections; + +public class Wander2Unit : MonoBehaviour +{ + + private SteeringBasics steeringBasics; + private Wander2 wander; + + // Use this for initialization + void Start() + { + steeringBasics = GetComponent(); + wander = GetComponent(); + } + + // Update is called once per frame + void Update() + { + Vector3 accel = wander.getSteering(); + + steeringBasics.steer(accel); + steeringBasics.lookWhereYoureGoing(); + } +} diff --git a/Assets/Scripts/Wander2Unit.cs.meta b/Assets/Scripts/Wander2Unit.cs.meta new file mode 100644 index 0000000..5dc1392 --- /dev/null +++ b/Assets/Scripts/Wander2Unit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ecb0c8fe6f551294bbba53fde5ed4b5d +timeCreated: 1444858155 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/WanderAvoidUnit.cs b/Assets/Scripts/WanderAvoidUnit.cs new file mode 100644 index 0000000..a1f67e8 --- /dev/null +++ b/Assets/Scripts/WanderAvoidUnit.cs @@ -0,0 +1,35 @@ +using UnityEngine; +using System.Collections; + +public class WanderAvoidUnit : MonoBehaviour { + + private SteeringBasics steeringBasics; + private Wander2 wander; + private CollisionAvoidance colAvoid; + + private NearSensor colAvoidSensor; + + // Use this for initialization + void Start() + { + steeringBasics = GetComponent(); + wander = GetComponent(); + colAvoid = GetComponent(); + + colAvoidSensor = transform.Find("ColAvoidSensor").GetComponent(); + } + + // Update is called once per frame + void Update() + { + Vector3 accel = colAvoid.getSteering(colAvoidSensor.targets); + + if (accel.magnitude < 0.005f) + { + accel = wander.getSteering(); + } + + steeringBasics.steer(accel); + steeringBasics.lookWhereYoureGoing(); + } +} \ No newline at end of file diff --git a/Assets/Scripts/WanderAvoidUnit.cs.meta b/Assets/Scripts/WanderAvoidUnit.cs.meta new file mode 100644 index 0000000..f7d4671 --- /dev/null +++ b/Assets/Scripts/WanderAvoidUnit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bfc8bb85285d9974684a932daef751b2 +timeCreated: 1445210468 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/ProjectSettings/AudioManager.asset b/ProjectSettings/AudioManager.asset new file mode 100644 index 0000000..faf901c --- /dev/null +++ b/ProjectSettings/AudioManager.asset @@ -0,0 +1,15 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!11 &1 +AudioManager: + m_ObjectHideFlags: 0 + m_Volume: 1 + Rolloff Scale: 1 + Doppler Factor: 1 + Default Speaker Mode: 2 + m_SampleRate: 0 + m_DSPBufferSize: 0 + m_VirtualVoiceCount: 512 + m_RealVoiceCount: 32 + m_SpatializerPlugin: + m_DisableAudio: 0 diff --git a/ProjectSettings/DynamicsManager.asset b/ProjectSettings/DynamicsManager.asset new file mode 100644 index 0000000..345dcb5 --- /dev/null +++ b/ProjectSettings/DynamicsManager.asset @@ -0,0 +1,15 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!55 &1 +PhysicsManager: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Gravity: {x: 0, y: -9.81000042, z: 0} + m_DefaultMaterial: {fileID: 0} + m_BounceThreshold: 2 + m_SleepThreshold: .00499999989 + m_DefaultContactOffset: .00999999978 + m_SolverIterationCount: 6 + m_QueriesHitTriggers: 1 + m_EnableAdaptiveForce: 0 + m_LayerCollisionMatrix: fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff diff --git a/ProjectSettings/EditorBuildSettings.asset b/ProjectSettings/EditorBuildSettings.asset new file mode 100644 index 0000000..6dc24f7 --- /dev/null +++ b/ProjectSettings/EditorBuildSettings.asset @@ -0,0 +1,7 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1045 &1 +EditorBuildSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Scenes: [] diff --git a/ProjectSettings/EditorSettings.asset b/ProjectSettings/EditorSettings.asset new file mode 100644 index 0000000..529a05c --- /dev/null +++ b/ProjectSettings/EditorSettings.asset @@ -0,0 +1,15 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!159 &1 +EditorSettings: + m_ObjectHideFlags: 0 + serializedVersion: 3 + m_ExternalVersionControlSupport: Visible Meta Files + m_SerializationMode: 2 + m_WebSecurityEmulationEnabled: 0 + m_WebSecurityEmulationHostUrl: http://www.mydomain.com/mygame.unity3d + m_DefaultBehaviorMode: 0 + m_SpritePackerMode: 2 + m_SpritePackerPaddingPower: 1 + m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd + m_ProjectGenerationRootNamespace: diff --git a/ProjectSettings/GraphicsSettings.asset b/ProjectSettings/GraphicsSettings.asset new file mode 100644 index 0000000..151b43f --- /dev/null +++ b/ProjectSettings/GraphicsSettings.asset @@ -0,0 +1,34 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!30 &1 +GraphicsSettings: + m_ObjectHideFlags: 0 + serializedVersion: 4 + m_Deferred: + m_Mode: 1 + m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} + m_DeferredReflections: + m_Mode: 1 + m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} + m_LegacyDeferred: + m_Mode: 1 + m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} + m_AlwaysIncludedShaders: + - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} + - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} + - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} + - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} + - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} + - {fileID: 10782, guid: 0000000000000000f000000000000000, type: 0} + m_PreloadedShaders: [] + m_LightmapStripping: 0 + m_LightmapKeepPlain: 1 + m_LightmapKeepDirCombined: 1 + m_LightmapKeepDirSeparate: 1 + m_LightmapKeepDynamicPlain: 1 + m_LightmapKeepDynamicDirCombined: 1 + m_LightmapKeepDynamicDirSeparate: 1 + m_FogStripping: 0 + m_FogKeepLinear: 1 + m_FogKeepExp: 1 + m_FogKeepExp2: 1 diff --git a/ProjectSettings/InputManager.asset b/ProjectSettings/InputManager.asset new file mode 100644 index 0000000..b5ba40c --- /dev/null +++ b/ProjectSettings/InputManager.asset @@ -0,0 +1,295 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!13 &1 +InputManager: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Axes: + - serializedVersion: 3 + m_Name: Horizontal + descriptiveName: + descriptiveNegativeName: + negativeButton: left + positiveButton: right + altNegativeButton: a + altPositiveButton: d + gravity: 3 + dead: .00100000005 + sensitivity: 3 + snap: 1 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Vertical + descriptiveName: + descriptiveNegativeName: + negativeButton: down + positiveButton: up + altNegativeButton: s + altPositiveButton: w + gravity: 3 + dead: .00100000005 + sensitivity: 3 + snap: 1 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Fire1 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: left ctrl + altNegativeButton: + altPositiveButton: mouse 0 + gravity: 1000 + dead: .00100000005 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Fire2 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: left alt + altNegativeButton: + altPositiveButton: mouse 1 + gravity: 1000 + dead: .00100000005 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Fire3 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: left shift + altNegativeButton: + altPositiveButton: mouse 2 + gravity: 1000 + dead: .00100000005 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Jump + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: space + altNegativeButton: + altPositiveButton: + gravity: 1000 + dead: .00100000005 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Mouse X + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: + altNegativeButton: + altPositiveButton: + gravity: 0 + dead: 0 + sensitivity: .100000001 + snap: 0 + invert: 0 + type: 1 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Mouse Y + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: + altNegativeButton: + altPositiveButton: + gravity: 0 + dead: 0 + sensitivity: .100000001 + snap: 0 + invert: 0 + type: 1 + axis: 1 + joyNum: 0 + - serializedVersion: 3 + m_Name: Mouse ScrollWheel + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: + altNegativeButton: + altPositiveButton: + gravity: 0 + dead: 0 + sensitivity: .100000001 + snap: 0 + invert: 0 + type: 1 + axis: 2 + joyNum: 0 + - serializedVersion: 3 + m_Name: Horizontal + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: + altNegativeButton: + altPositiveButton: + gravity: 0 + dead: .189999998 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Vertical + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: + altNegativeButton: + altPositiveButton: + gravity: 0 + dead: .189999998 + sensitivity: 1 + snap: 0 + invert: 1 + type: 2 + axis: 1 + joyNum: 0 + - serializedVersion: 3 + m_Name: Fire1 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: joystick button 0 + altNegativeButton: + altPositiveButton: + gravity: 1000 + dead: .00100000005 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Fire2 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: joystick button 1 + altNegativeButton: + altPositiveButton: + gravity: 1000 + dead: .00100000005 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Fire3 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: joystick button 2 + altNegativeButton: + altPositiveButton: + gravity: 1000 + dead: .00100000005 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Jump + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: joystick button 3 + altNegativeButton: + altPositiveButton: + gravity: 1000 + dead: .00100000005 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Submit + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: return + altNegativeButton: + altPositiveButton: joystick button 0 + gravity: 1000 + dead: .00100000005 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Submit + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: enter + altNegativeButton: + altPositiveButton: space + gravity: 1000 + dead: .00100000005 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Cancel + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: .00100000005 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 diff --git a/ProjectSettings/NavMeshAreas.asset b/ProjectSettings/NavMeshAreas.asset new file mode 100644 index 0000000..a04f35c --- /dev/null +++ b/ProjectSettings/NavMeshAreas.asset @@ -0,0 +1,71 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!126 &1 +NavMeshAreas: + m_ObjectHideFlags: 0 + serializedVersion: 2 + areas: + - name: Walkable + cost: 1 + - name: Not Walkable + cost: 1 + - name: Jump + cost: 2 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 diff --git a/ProjectSettings/NetworkManager.asset b/ProjectSettings/NetworkManager.asset new file mode 100644 index 0000000..5dc6a83 --- /dev/null +++ b/ProjectSettings/NetworkManager.asset @@ -0,0 +1,8 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!149 &1 +NetworkManager: + m_ObjectHideFlags: 0 + m_DebugLevel: 0 + m_Sendrate: 15 + m_AssetToPrefab: {} diff --git a/ProjectSettings/Physics2DSettings.asset b/ProjectSettings/Physics2DSettings.asset new file mode 100644 index 0000000..80b5feb --- /dev/null +++ b/ProjectSettings/Physics2DSettings.asset @@ -0,0 +1,25 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!19 &1 +Physics2DSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Gravity: {x: 0, y: -9.81000042} + m_DefaultMaterial: {fileID: 0} + m_VelocityIterations: 8 + m_PositionIterations: 3 + m_VelocityThreshold: 1 + m_MaxLinearCorrection: .200000003 + m_MaxAngularCorrection: 8 + m_MaxTranslationSpeed: 100 + m_MaxRotationSpeed: 360 + m_MinPenetrationForPenalty: .00999999978 + m_BaumgarteScale: .200000003 + m_BaumgarteTimeOfImpactScale: .75 + m_TimeToSleep: .5 + m_LinearSleepTolerance: .00999999978 + m_AngularSleepTolerance: 2 + m_QueriesHitTriggers: 1 + m_QueriesStartInColliders: 1 + m_ChangeStopsCallbacks: 0 + m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff diff --git a/ProjectSettings/ProjectSettings.asset b/ProjectSettings/ProjectSettings.asset new file mode 100644 index 0000000..0c17c14 --- /dev/null +++ b/ProjectSettings/ProjectSettings.asset @@ -0,0 +1,481 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!129 &1 +PlayerSettings: + m_ObjectHideFlags: 0 + serializedVersion: 7 + AndroidProfiler: 0 + defaultScreenOrientation: 4 + targetDevice: 2 + targetResolution: 0 + useOnDemandResources: 0 + accelerometerFrequency: 60 + companyName: DefaultCompany + productName: steering-behaviors + defaultCursor: {fileID: 0} + cursorHotspot: {x: 0, y: 0} + m_ShowUnitySplashScreen: 1 + defaultScreenWidth: 1024 + defaultScreenHeight: 768 + defaultScreenWidthWeb: 960 + defaultScreenHeightWeb: 600 + m_RenderingPath: 1 + m_MobileRenderingPath: 1 + m_ActiveColorSpace: 0 + m_MTRendering: 1 + m_MobileMTRendering: 0 + m_Stereoscopic3D: 0 + iosShowActivityIndicatorOnLoading: -1 + androidShowActivityIndicatorOnLoading: -1 + iosAppInBackgroundBehavior: 0 + displayResolutionDialog: 1 + iosAllowHTTPDownload: 1 + allowedAutorotateToPortrait: 1 + allowedAutorotateToPortraitUpsideDown: 1 + allowedAutorotateToLandscapeRight: 1 + allowedAutorotateToLandscapeLeft: 1 + useOSAutorotation: 1 + use32BitDisplayBuffer: 1 + disableDepthAndStencilBuffers: 0 + defaultIsFullScreen: 1 + defaultIsNativeResolution: 1 + runInBackground: 0 + captureSingleScreen: 0 + Override IPod Music: 0 + Prepare IOS For Recording: 0 + submitAnalytics: 1 + usePlayerLog: 1 + bakeCollisionMeshes: 0 + forceSingleInstance: 0 + resizableWindow: 0 + useMacAppStoreValidation: 0 + gpuSkinning: 0 + xboxPIXTextureCapture: 0 + xboxEnableAvatar: 0 + xboxEnableKinect: 0 + xboxEnableKinectAutoTracking: 0 + xboxEnableFitness: 0 + visibleInBackground: 0 + macFullscreenMode: 2 + d3d9FullscreenMode: 1 + d3d11FullscreenMode: 1 + xboxSpeechDB: 0 + xboxEnableHeadOrientation: 0 + xboxEnableGuest: 0 + n3dsDisableStereoscopicView: 0 + n3dsEnableSharedListOpt: 1 + n3dsEnableVSync: 0 + xboxOneResolution: 0 + ps3SplashScreen: {fileID: 0} + videoMemoryForVertexBuffers: 0 + psp2PowerMode: 0 + psp2AcquireBGM: 1 + wiiUTVResolution: 0 + wiiUGamePadMSAA: 1 + wiiUSupportsNunchuk: 0 + wiiUSupportsClassicController: 0 + wiiUSupportsBalanceBoard: 0 + wiiUSupportsMotionPlus: 0 + wiiUSupportsProController: 0 + wiiUAllowScreenCapture: 1 + wiiUControllerCount: 0 + m_SupportedAspectRatios: + 4:3: 1 + 5:4: 1 + 16:10: 1 + 16:9: 1 + Others: 1 + bundleIdentifier: com.Company.ProductName + bundleVersion: 1.0 + preloadedAssets: [] + metroEnableIndependentInputSource: 0 + metroEnableLowLatencyPresentationAPI: 0 + xboxOneDisableKinectGpuReservation: 0 + virtualRealitySupported: 0 + productGUID: 753a44efa39e03e4588197bd90f6b28a + AndroidBundleVersionCode: 1 + AndroidMinSdkVersion: 9 + AndroidPreferredInstallLocation: 1 + aotOptions: + apiCompatibilityLevel: 2 + stripEngineCode: 1 + iPhoneStrippingLevel: 0 + iPhoneScriptCallOptimization: 0 + iPhoneBuildNumber: 0 + ForceInternetPermission: 0 + ForceSDCardPermission: 0 + CreateWallpaper: 0 + APKExpansionFiles: 0 + preloadShaders: 0 + StripUnusedMeshComponents: 0 + VertexChannelCompressionMask: + serializedVersion: 2 + m_Bits: 238 + iPhoneSdkVersion: 988 + iPhoneTargetOSVersion: 22 + uIPrerenderedIcon: 0 + uIRequiresPersistentWiFi: 0 + uIStatusBarHidden: 1 + uIExitOnSuspend: 0 + uIStatusBarStyle: 0 + iPhoneSplashScreen: {fileID: 0} + iPhoneHighResSplashScreen: {fileID: 0} + iPhoneTallHighResSplashScreen: {fileID: 0} + iPhone47inSplashScreen: {fileID: 0} + iPhone55inPortraitSplashScreen: {fileID: 0} + iPhone55inLandscapeSplashScreen: {fileID: 0} + iPadPortraitSplashScreen: {fileID: 0} + iPadHighResPortraitSplashScreen: {fileID: 0} + iPadLandscapeSplashScreen: {fileID: 0} + iPadHighResLandscapeSplashScreen: {fileID: 0} + iOSLaunchScreenType: 0 + iOSLaunchScreenPortrait: {fileID: 0} + iOSLaunchScreenLandscape: {fileID: 0} + iOSLaunchScreenBackgroundColor: + serializedVersion: 2 + rgba: 0 + iOSLaunchScreenFillPct: 100 + iOSLaunchScreenSize: 100 + iOSLaunchScreenCustomXibPath: + iOSLaunchScreeniPadType: 0 + iOSLaunchScreeniPadImage: {fileID: 0} + iOSLaunchScreeniPadBackgroundColor: + serializedVersion: 2 + rgba: 0 + iOSLaunchScreeniPadFillPct: 100 + iOSLaunchScreeniPadSize: 100 + iOSLaunchScreeniPadCustomXibPath: + iOSDeviceRequirements: [] + AndroidTargetDevice: 0 + AndroidSplashScreenScale: 0 + androidSplashScreen: {fileID: 0} + AndroidKeystoreName: + AndroidKeyaliasName: + AndroidTVCompatibility: 1 + AndroidIsGame: 1 + androidEnableBanner: 1 + m_AndroidBanners: + - width: 320 + height: 180 + banner: {fileID: 0} + androidGamepadSupportLevel: 0 + resolutionDialogBanner: {fileID: 0} + m_BuildTargetIcons: [] + m_BuildTargetBatching: [] + m_BuildTargetGraphicsAPIs: [] + webPlayerTemplate: APPLICATION:Default + m_TemplateCustomTags: {} + wiiUTitleID: 0005000011000000 + wiiUGroupID: 00010000 + wiiUCommonSaveSize: 4096 + wiiUAccountSaveSize: 2048 + wiiUOlvAccessKey: 0 + wiiUTinCode: 0 + wiiUJoinGameId: 0 + wiiUJoinGameModeMask: 0000000000000000 + wiiUCommonBossSize: 0 + wiiUAccountBossSize: 0 + wiiUAddOnUniqueIDs: [] + wiiUMainThreadStackSize: 3072 + wiiULoaderThreadStackSize: 1024 + wiiUSystemHeapSize: 128 + wiiUTVStartupScreen: {fileID: 0} + wiiUGamePadStartupScreen: {fileID: 0} + wiiUProfilerLibPath: + actionOnDotNetUnhandledException: 1 + enableInternalProfiler: 0 + logObjCUncaughtExceptions: 1 + enableCrashReportAPI: 0 + locationUsageDescription: + XboxTitleId: + XboxImageXexPath: + XboxSpaPath: + XboxGenerateSpa: 0 + XboxDeployKinectResources: 0 + XboxSplashScreen: {fileID: 0} + xboxEnableSpeech: 0 + xboxAdditionalTitleMemorySize: 0 + xboxDeployKinectHeadOrientation: 0 + xboxDeployKinectHeadPosition: 0 + ps3TitleConfigPath: + ps3DLCConfigPath: + ps3ThumbnailPath: + ps3BackgroundPath: + ps3SoundPath: + ps3NPAgeRating: 12 + ps3TrophyCommId: + ps3NpCommunicationPassphrase: + ps3TrophyPackagePath: + ps3BootCheckMaxSaveGameSizeKB: 128 + ps3TrophyCommSig: + ps3SaveGameSlots: 1 + ps3TrialMode: 0 + ps3VideoMemoryForAudio: 0 + ps3EnableVerboseMemoryStats: 0 + ps3UseSPUForUmbra: 0 + ps3EnableMoveSupport: 1 + ps3DisableDolbyEncoding: 0 + ps4NPAgeRating: 12 + ps4NPTitleSecret: + ps4NPTrophyPackPath: + ps4ParentalLevel: 1 + ps4ContentID: ED1633-NPXX51362_00-0000000000000000 + ps4Category: 0 + ps4MasterVersion: 01.00 + ps4AppVersion: 01.00 + ps4AppType: 0 + ps4ParamSfxPath: + ps4VideoOutPixelFormat: 0 + ps4VideoOutResolution: 4 + ps4PronunciationXMLPath: + ps4PronunciationSIGPath: + ps4BackgroundImagePath: + ps4StartupImagePath: + ps4SaveDataImagePath: + ps4SdkOverride: + ps4BGMPath: + ps4ShareFilePath: + ps4ShareOverlayImagePath: + ps4PrivacyGuardImagePath: + ps4NPtitleDatPath: + ps4RemotePlayKeyAssignment: -1 + ps4RemotePlayKeyMappingDir: + ps4EnterButtonAssignment: 1 + ps4ApplicationParam1: 0 + ps4ApplicationParam2: 0 + ps4ApplicationParam3: 0 + ps4ApplicationParam4: 0 + ps4DownloadDataSize: 0 + ps4GarlicHeapSize: 2048 + ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ + ps4pnSessions: 1 + ps4pnPresence: 1 + ps4pnFriends: 1 + ps4pnGameCustomData: 1 + playerPrefsSupport: 0 + ps4ReprojectionSupport: 0 + ps4attribUserManagement: 0 + ps4attribMoveSupport: 0 + ps4attrib3DSupport: 0 + ps4attribShareSupport: 0 + ps4IncludedModules: [] + monoEnv: + psp2Splashimage: {fileID: 0} + psp2NPTrophyPackPath: + psp2NPSupportGBMorGJP: 0 + psp2NPAgeRating: 12 + psp2NPTitleDatPath: + psp2NPCommsID: + psp2NPCommunicationsID: + psp2NPCommsPassphrase: + psp2NPCommsSig: + psp2ParamSfxPath: + psp2ManualPath: + psp2LiveAreaGatePath: + psp2LiveAreaBackroundPath: + psp2LiveAreaPath: + psp2LiveAreaTrialPath: + psp2PatchChangeInfoPath: + psp2PatchOriginalPackage: + psp2PackagePassword: F69AzBlax3CF3EDNhm3soLBPh71Yexui + psp2KeystoneFile: + psp2MemoryExpansionMode: 0 + psp2DRMType: 0 + psp2StorageType: 0 + psp2MediaCapacity: 0 + psp2DLCConfigPath: + psp2ThumbnailPath: + psp2BackgroundPath: + psp2SoundPath: + psp2TrophyCommId: + psp2TrophyPackagePath: + psp2PackagedResourcesPath: + psp2SaveDataQuota: 10240 + psp2ParentalLevel: 1 + psp2ShortTitle: Not Set + psp2ContentID: IV0000-ABCD12345_00-0123456789ABCDEF + psp2Category: 0 + psp2MasterVersion: 01.00 + psp2AppVersion: 01.00 + psp2TVBootMode: 0 + psp2EnterButtonAssignment: 2 + psp2TVDisableEmu: 0 + psp2AllowTwitterDialog: 1 + psp2Upgradable: 0 + psp2HealthWarning: 0 + psp2UseLibLocation: 0 + psp2InfoBarOnStartup: 0 + psp2InfoBarColor: 0 + psmSplashimage: {fileID: 0} + spritePackerPolicy: + scriptingDefineSymbols: {} + metroPackageName: steering-behaviors + metroPackageLogo: + metroPackageLogo140: + metroPackageLogo180: + metroPackageLogo240: + metroPackageVersion: + metroCertificatePath: + metroCertificatePassword: + metroCertificateSubject: + metroCertificateIssuer: + metroCertificateNotAfter: 0000000000000000 + metroApplicationDescription: steering-behaviors + metroStoreTileLogo80: + metroStoreTileLogo: + metroStoreTileLogo140: + metroStoreTileLogo180: + metroStoreTileWideLogo80: + metroStoreTileWideLogo: + metroStoreTileWideLogo140: + metroStoreTileWideLogo180: + metroStoreTileSmallLogo80: + metroStoreTileSmallLogo: + metroStoreTileSmallLogo140: + metroStoreTileSmallLogo180: + metroStoreSmallTile80: + metroStoreSmallTile: + metroStoreSmallTile140: + metroStoreSmallTile180: + metroStoreLargeTile80: + metroStoreLargeTile: + metroStoreLargeTile140: + metroStoreLargeTile180: + metroStoreSplashScreenImage: + metroStoreSplashScreenImage140: + metroStoreSplashScreenImage180: + metroPhoneAppIcon: + metroPhoneAppIcon140: + metroPhoneAppIcon240: + metroPhoneSmallTile: + metroPhoneSmallTile140: + metroPhoneSmallTile240: + metroPhoneMediumTile: + metroPhoneMediumTile140: + metroPhoneMediumTile240: + metroPhoneWideTile: + metroPhoneWideTile140: + metroPhoneWideTile240: + metroPhoneSplashScreenImage: + metroPhoneSplashScreenImage140: + metroPhoneSplashScreenImage240: + metroTileShortName: + metroCommandLineArgsFile: + metroTileShowName: 0 + metroMediumTileShowName: 0 + metroLargeTileShowName: 0 + metroWideTileShowName: 0 + metroDefaultTileSize: 1 + metroTileForegroundText: 1 + metroTileBackgroundColor: {r: 0, g: 0, b: 0, a: 1} + metroSplashScreenBackgroundColor: {r: 0, g: 0, b: 0, a: 1} + metroSplashScreenUseBackgroundColor: 0 + platformCapabilities: {} + metroFTAName: + metroFTAFileTypes: [] + metroProtocolName: + metroCompilationOverrides: 1 + blackberryDeviceAddress: + blackberryDevicePassword: + blackberryTokenPath: + blackberryTokenExires: + blackberryTokenAuthor: + blackberryTokenAuthorId: + blackberryCskPassword: + blackberrySaveLogPath: + blackberrySharedPermissions: 0 + blackberryCameraPermissions: 0 + blackberryGPSPermissions: 0 + blackberryDeviceIDPermissions: 0 + blackberryMicrophonePermissions: 0 + blackberryGamepadSupport: 0 + blackberryBuildId: 0 + blackberryLandscapeSplashScreen: {fileID: 0} + blackberryPortraitSplashScreen: {fileID: 0} + blackberrySquareSplashScreen: {fileID: 0} + tizenProductDescription: + tizenProductURL: + tizenSigningProfileName: + tizenGPSPermissions: 0 + tizenMicrophonePermissions: 0 + n3dsUseExtSaveData: 0 + n3dsCompressStaticMem: 1 + n3dsExtSaveDataNumber: 0x12345 + n3dsStackSize: 131072 + n3dsTargetPlatform: 2 + n3dsRegion: 7 + n3dsMediaSize: 0 + n3dsLogoStyle: 3 + n3dsTitle: GameName + n3dsProductCode: + n3dsApplicationId: 0xFF3FF + stvDeviceAddress: + stvProductDescription: + stvProductAuthor: + stvProductAuthorEmail: + stvProductLink: + stvProductCategory: 0 + XboxOneProductId: + XboxOneUpdateKey: + XboxOneSandboxId: + XboxOneContentId: + XboxOneTitleId: + XboxOneSCId: + XboxOneGameOsOverridePath: + XboxOnePackagingOverridePath: + XboxOneAppManifestOverridePath: + XboxOnePackageEncryption: 0 + XboxOnePackageUpdateGranularity: 2 + XboxOneDescription: + XboxOneIsContentPackage: 0 + XboxOneEnableGPUVariability: 0 + XboxOneSockets: {} + XboxOneSplashScreen: {fileID: 0} + XboxOneAllowedProductIds: [] + XboxOnePersistentLocalStorageSize: 0 + intPropertyNames: + - Android::ScriptingBackend + - Metro::ScriptingBackend + - Standalone::ScriptingBackend + - WP8::ScriptingBackend + - WebGL::ScriptingBackend + - WebGL::audioCompressionFormat + - WebGL::exceptionSupport + - WebGL::memorySize + - WebPlayer::ScriptingBackend + - iOS::Architecture + - iOS::EnableIncrementalBuildSupportForIl2cpp + - iOS::ScriptingBackend + Android::ScriptingBackend: 0 + Metro::ScriptingBackend: 2 + Standalone::ScriptingBackend: 0 + WP8::ScriptingBackend: 2 + WebGL::ScriptingBackend: 1 + WebGL::audioCompressionFormat: 4 + WebGL::exceptionSupport: 1 + WebGL::memorySize: 256 + WebPlayer::ScriptingBackend: 0 + iOS::Architecture: 2 + iOS::EnableIncrementalBuildSupportForIl2cpp: 0 + iOS::ScriptingBackend: 1 + boolPropertyNames: + - WebGL::analyzeBuildSize + - WebGL::dataCaching + - WebGL::useEmbeddedResources + - XboxOne::enus + WebGL::analyzeBuildSize: 0 + WebGL::dataCaching: 0 + WebGL::useEmbeddedResources: 0 + XboxOne::enus: 1 + stringPropertyNames: + - WebGL::emscriptenArgs + - WebGL::template + - additionalIl2CppArgs::additionalIl2CppArgs + WebGL::emscriptenArgs: + WebGL::template: APPLICATION:Default + additionalIl2CppArgs::additionalIl2CppArgs: + firstStreamedSceneWithResources: 0 + cloudProjectId: + projectName: + organizationId: + cloudEnabled: 0 diff --git a/ProjectSettings/ProjectVersion.txt b/ProjectSettings/ProjectVersion.txt new file mode 100644 index 0000000..8a062e6 --- /dev/null +++ b/ProjectSettings/ProjectVersion.txt @@ -0,0 +1,2 @@ +m_EditorVersion: 5.2.1f1 +m_StandardAssetsVersion: 0 diff --git a/ProjectSettings/QualitySettings.asset b/ProjectSettings/QualitySettings.asset new file mode 100644 index 0000000..2282260 --- /dev/null +++ b/ProjectSettings/QualitySettings.asset @@ -0,0 +1,172 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!47 &1 +QualitySettings: + m_ObjectHideFlags: 0 + serializedVersion: 5 + m_CurrentQuality: 5 + m_QualitySettings: + - serializedVersion: 2 + name: Fastest + pixelLightCount: 0 + shadows: 0 + shadowResolution: 0 + shadowProjection: 1 + shadowCascades: 1 + shadowDistance: 15 + shadowNearPlaneOffset: 2 + shadowCascade2Split: .333333343 + shadowCascade4Split: {x: .0666666701, y: .200000003, z: .466666669} + blendWeights: 1 + textureQuality: 1 + anisotropicTextures: 0 + antiAliasing: 0 + softParticles: 0 + softVegetation: 0 + realtimeReflectionProbes: 0 + billboardsFaceCameraPosition: 0 + vSyncCount: 0 + lodBias: .300000012 + maximumLODLevel: 0 + particleRaycastBudget: 4 + excludedTargetPlatforms: [] + - serializedVersion: 2 + name: Fast + pixelLightCount: 0 + shadows: 0 + shadowResolution: 0 + shadowProjection: 1 + shadowCascades: 1 + shadowDistance: 20 + shadowNearPlaneOffset: 2 + shadowCascade2Split: .333333343 + shadowCascade4Split: {x: .0666666701, y: .200000003, z: .466666669} + blendWeights: 2 + textureQuality: 0 + anisotropicTextures: 0 + antiAliasing: 0 + softParticles: 0 + softVegetation: 0 + realtimeReflectionProbes: 0 + billboardsFaceCameraPosition: 0 + vSyncCount: 0 + lodBias: .400000006 + maximumLODLevel: 0 + particleRaycastBudget: 16 + excludedTargetPlatforms: [] + - serializedVersion: 2 + name: Simple + pixelLightCount: 1 + shadows: 1 + shadowResolution: 0 + shadowProjection: 1 + shadowCascades: 1 + shadowDistance: 20 + shadowNearPlaneOffset: 2 + shadowCascade2Split: .333333343 + shadowCascade4Split: {x: .0666666701, y: .200000003, z: .466666669} + blendWeights: 2 + textureQuality: 0 + anisotropicTextures: 1 + antiAliasing: 0 + softParticles: 0 + softVegetation: 0 + realtimeReflectionProbes: 0 + billboardsFaceCameraPosition: 0 + vSyncCount: 0 + lodBias: .699999988 + maximumLODLevel: 0 + particleRaycastBudget: 64 + excludedTargetPlatforms: [] + - serializedVersion: 2 + name: Good + pixelLightCount: 2 + shadows: 2 + shadowResolution: 1 + shadowProjection: 1 + shadowCascades: 2 + shadowDistance: 40 + shadowNearPlaneOffset: 2 + shadowCascade2Split: .333333343 + shadowCascade4Split: {x: .0666666701, y: .200000003, z: .466666669} + blendWeights: 2 + textureQuality: 0 + anisotropicTextures: 1 + antiAliasing: 0 + softParticles: 0 + softVegetation: 1 + realtimeReflectionProbes: 1 + billboardsFaceCameraPosition: 1 + vSyncCount: 1 + lodBias: 1 + maximumLODLevel: 0 + particleRaycastBudget: 256 + excludedTargetPlatforms: [] + - serializedVersion: 2 + name: Beautiful + pixelLightCount: 3 + shadows: 2 + shadowResolution: 2 + shadowProjection: 1 + shadowCascades: 2 + shadowDistance: 70 + shadowNearPlaneOffset: 2 + shadowCascade2Split: .333333343 + shadowCascade4Split: {x: .0666666701, y: .200000003, z: .466666669} + blendWeights: 4 + textureQuality: 0 + anisotropicTextures: 2 + antiAliasing: 2 + softParticles: 1 + softVegetation: 1 + realtimeReflectionProbes: 1 + billboardsFaceCameraPosition: 1 + vSyncCount: 1 + lodBias: 1.5 + maximumLODLevel: 0 + particleRaycastBudget: 1024 + excludedTargetPlatforms: [] + - serializedVersion: 2 + name: Fantastic + pixelLightCount: 4 + shadows: 2 + shadowResolution: 2 + shadowProjection: 1 + shadowCascades: 4 + shadowDistance: 150 + shadowNearPlaneOffset: 2 + shadowCascade2Split: .333333343 + shadowCascade4Split: {x: .0666666701, y: .200000003, z: .466666669} + blendWeights: 4 + textureQuality: 0 + anisotropicTextures: 2 + antiAliasing: 2 + softParticles: 1 + softVegetation: 1 + realtimeReflectionProbes: 1 + billboardsFaceCameraPosition: 1 + vSyncCount: 1 + lodBias: 2 + maximumLODLevel: 0 + particleRaycastBudget: 4096 + excludedTargetPlatforms: [] + m_PerPlatformDefaultQuality: + Android: 2 + BlackBerry: 2 + GLES Emulation: 5 + Nintendo 3DS: 5 + PS3: 5 + PS4: 5 + PSM: 5 + PSP2: 2 + Samsung TV: 2 + Standalone: 5 + Tizen: 2 + WP8: 5 + Web: 5 + WebGL: 3 + Wii U: 5 + Windows Store Apps: 5 + XBOX360: 5 + XboxOne: 5 + iPhone: 2 diff --git a/ProjectSettings/TagManager.asset b/ProjectSettings/TagManager.asset new file mode 100644 index 0000000..b63ddbc --- /dev/null +++ b/ProjectSettings/TagManager.asset @@ -0,0 +1,43 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!78 &1 +TagManager: + serializedVersion: 2 + tags: [] + layers: + - Default + - TransparentFX + - Ignore Raycast + - + - Water + - UI + - + - + - Sensor + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + m_SortingLayers: + - name: Default + uniqueID: 0 + locked: 0 diff --git a/ProjectSettings/TimeManager.asset b/ProjectSettings/TimeManager.asset new file mode 100644 index 0000000..f0e494b --- /dev/null +++ b/ProjectSettings/TimeManager.asset @@ -0,0 +1,8 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!5 &1 +TimeManager: + m_ObjectHideFlags: 0 + Fixed Timestep: .0199999996 + Maximum Allowed Timestep: .333333343 + m_TimeScale: 1 diff --git a/ProjectSettings/UnityAdsSettings.asset b/ProjectSettings/UnityAdsSettings.asset new file mode 100644 index 0000000..224050c --- /dev/null +++ b/ProjectSettings/UnityAdsSettings.asset @@ -0,0 +1,11 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!292 &1 +UnityAdsSettings: + m_ObjectHideFlags: 0 + m_Enabled: 0 + m_InitializeOnStartup: 1 + m_TestMode: 0 + m_EnabledPlatforms: 4294967295 + m_IosGameId: + m_AndroidGameId: diff --git a/ProjectSettings/UnityAnalyticsManager.asset b/ProjectSettings/UnityAnalyticsManager.asset new file mode 100644 index 0000000..4a7b668 --- /dev/null +++ b/ProjectSettings/UnityAnalyticsManager.asset @@ -0,0 +1,10 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!303 &1 +UnityAnalyticsManager: + m_ObjectHideFlags: 0 + m_Enabled: 0 + m_InitializeOnStartup: 1 + m_TestMode: 0 + m_TestEventUrl: + m_TestConfigUrl: