Browse Source

Added horsey prefab

master
NickFowler 4 years ago
parent
commit
c4ae50cf25
3 changed files with 297 additions and 72 deletions
  1. +140
    -72
      Assets/Scenes/SampleScene.unity
  2. +150
    -0
      Assets/WorldAssets/Prefabs/Horse.prefab
  3. +7
    -0
      Assets/WorldAssets/Prefabs/Horse.prefab.meta

+ 140
- 72
Assets/Scenes/SampleScene.unity View File

@ -121,6 +121,89 @@ NavMeshSettings:
debug: debug:
m_Flags: 0 m_Flags: 0
m_NavMeshData: {fileID: 0} m_NavMeshData: {fileID: 0}
--- !u!1001 &459896632
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 1975754340}
m_Modifications:
- target: {fileID: 588491153375435794, guid: 4d11c77c6b58b7040a8596bc47f45d97,
type: 3}
propertyPath: m_Name
value: Cube
objectReference: {fileID: 0}
- target: {fileID: 1281286576698487906, guid: 4d11c77c6b58b7040a8596bc47f45d97,
type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1281286576698487906, guid: 4d11c77c6b58b7040a8596bc47f45d97,
type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1281286576698487906, guid: 4d11c77c6b58b7040a8596bc47f45d97,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1281286576698487906, guid: 4d11c77c6b58b7040a8596bc47f45d97,
type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1281286576698487906, guid: 4d11c77c6b58b7040a8596bc47f45d97,
type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1281286576698487906, guid: 4d11c77c6b58b7040a8596bc47f45d97,
type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1281286576698487906, guid: 4d11c77c6b58b7040a8596bc47f45d97,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 1281286576698487906, guid: 4d11c77c6b58b7040a8596bc47f45d97,
type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1281286576698487906, guid: 4d11c77c6b58b7040a8596bc47f45d97,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1281286576698487906, guid: 4d11c77c6b58b7040a8596bc47f45d97,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1281286576698487906, guid: 4d11c77c6b58b7040a8596bc47f45d97,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
m_RemovedComponents:
- {fileID: -641725564868193174, guid: 4d11c77c6b58b7040a8596bc47f45d97, type: 3}
- {fileID: 6187295151528677371, guid: 4d11c77c6b58b7040a8596bc47f45d97, type: 3}
m_SourcePrefab: {fileID: 100100000, guid: 4d11c77c6b58b7040a8596bc47f45d97, type: 3}
--- !u!1 &459896633 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 588491153375435794, guid: 4d11c77c6b58b7040a8596bc47f45d97,
type: 3}
m_PrefabInstance: {fileID: 459896632}
m_PrefabAsset: {fileID: 0}
--- !u!4 &459896634 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 1281286576698487906, guid: 4d11c77c6b58b7040a8596bc47f45d97,
type: 3}
m_PrefabInstance: {fileID: 459896632}
m_PrefabAsset: {fileID: 0}
--- !u!1 &705507993 --- !u!1 &705507993
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -296,7 +379,7 @@ Transform:
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 0 m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 90, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 90, y: 0, z: 0}
--- !u!1 &1451704393
--- !u!1 &1457452758
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
@ -304,77 +387,77 @@ GameObject:
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
serializedVersion: 6 serializedVersion: 6
m_Component: m_Component:
- component: {fileID: 1451704396}
- component: {fileID: 1451704395}
- component: {fileID: 1451704394}
- component: {fileID: 1457452761}
- component: {fileID: 1457452760}
- component: {fileID: 1457452759}
m_Layer: 0 m_Layer: 0
m_Name: Model
m_Name: Herd Controller
m_TagString: Untagged m_TagString: Untagged
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
m_IsActive: 1 m_IsActive: 1
--- !u!33 &1451704394
MeshFilter:
--- !u!114 &1457452759
MonoBehaviour:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1451704393}
m_Mesh: {fileID: 10208, guid: 0000000000000000e000000000000000, type: 0}
--- !u!23 &1451704395
MeshRenderer:
m_GameObject: {fileID: 1457452758}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 62899f850307741f2a39c98a8b639597, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Actions: {fileID: -944628639613478452, guid: 1950e6d3a3a526541aed6b542303792b,
type: 3}
m_NotificationBehavior: 0
m_UIInputModule: {fileID: 0}
m_DeviceLostEvent:
m_PersistentCalls:
m_Calls: []
m_DeviceRegainedEvent:
m_PersistentCalls:
m_Calls: []
m_ControlsChangedEvent:
m_PersistentCalls:
m_Calls: []
m_ActionEvents: []
m_NeverAutoSwitchControlSchemes: 0
m_DefaultControlScheme:
m_DefaultActionMap: Overworld
m_SplitScreenIndex: -1
m_Camera: {fileID: 0}
--- !u!114 &1457452760
MonoBehaviour:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1451704393}
m_GameObject: {fileID: 1457452758}
m_Enabled: 1 m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
--- !u!4 &1451704396
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 98ac8f1294983784896047d8a4f215cc, type: 3}
m_Name:
m_EditorClassIdentifier:
Prefab: {fileID: 1975754334}
HerdCount: 20
SpawnPoint: {fileID: 0}
WaitTime: 0.2
--- !u!4 &1457452761
Transform: Transform:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1451704393}
m_LocalRotation: {x: -0.7071068, y: 0, z: 0, w: 0.7071068}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_GameObject: {fileID: 1457452758}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -1.3643858, y: 0.05262532, z: 0.9637832}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: [] m_Children: []
m_Father: {fileID: 1975754340}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0}
m_Father: {fileID: 0}
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1975754334 --- !u!1 &1975754334
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -384,11 +467,10 @@ GameObject:
serializedVersion: 6 serializedVersion: 6
m_Component: m_Component:
- component: {fileID: 1975754340} - component: {fileID: 1975754340}
- component: {fileID: 1975754337}
- component: {fileID: 1975754336} - component: {fileID: 1975754336}
- component: {fileID: 1975754335} - component: {fileID: 1975754335}
m_Layer: 0 m_Layer: 0
m_Name: Capsule
m_Name: Horse
m_TagString: Untagged m_TagString: Untagged
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
@ -406,12 +488,12 @@ CharacterController:
m_Enabled: 1 m_Enabled: 1
serializedVersion: 2 serializedVersion: 2
m_Height: 2 m_Height: 2
m_Radius: 0.5
m_Radius: 1
m_SlopeLimit: 45 m_SlopeLimit: 45
m_StepOffset: 0.3 m_StepOffset: 0.3
m_SkinWidth: 0.08 m_SkinWidth: 0.08
m_MinMoveDistance: 0.001 m_MinMoveDistance: 0.001
m_Center: {x: 0, y: 0, z: 0}
m_Center: {x: 0, y: 1, z: 0}
--- !u!114 &1975754336 --- !u!114 &1975754336
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -424,22 +506,8 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 8f7fbcfa6410c204e8977bb70e5ff84b, type: 3} m_Script: {fileID: 11500000, guid: 8f7fbcfa6410c204e8977bb70e5ff84b, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
walkSpeed: 10
model: {fileID: 1451704393}
--- !u!136 &1975754337
CapsuleCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1975754334}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
m_Radius: 0.5
m_Height: 2
m_Direction: 1
m_Center: {x: 0, y: 0, z: 0}
walkSpeed: 2
model: {fileID: 459896633}
--- !u!4 &1975754340 --- !u!4 &1975754340
Transform: Transform:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -448,10 +516,10 @@ Transform:
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1975754334} m_GameObject: {fileID: 1975754334}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -0.7251444, y: 1.8377934, z: -0.25297546}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: m_Children:
- {fileID: 1451704396}
- {fileID: 459896634}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 2 m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}

+ 150
- 0
Assets/WorldAssets/Prefabs/Horse.prefab View File

@ -0,0 +1,150 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &7371939184051845554
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7371939184051845512}
- component: {fileID: 7371939184051845516}
- component: {fileID: 7371939184051845555}
m_Layer: 0
m_Name: Horse
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &7371939184051845512
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7371939184051845554}
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: 8612686764740273334}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &7371939184051845516
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7371939184051845554}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 8f7fbcfa6410c204e8977bb70e5ff84b, type: 3}
m_Name:
m_EditorClassIdentifier:
walkSpeed: 2
model: {fileID: 7954727171190983878}
--- !u!143 &7371939184051845555
CharacterController:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7371939184051845554}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 2
m_Height: 2
m_Radius: 1
m_SlopeLimit: 45
m_StepOffset: 0.3
m_SkinWidth: 0.08
m_MinMoveDistance: 0.001
m_Center: {x: 0, y: 1, z: 0}
--- !u!1001 &7371939184763441364
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 7371939184051845512}
m_Modifications:
- target: {fileID: 588491153375435794, guid: 4d11c77c6b58b7040a8596bc47f45d97,
type: 3}
propertyPath: m_Name
value: Cube
objectReference: {fileID: 0}
- target: {fileID: 1281286576698487906, guid: 4d11c77c6b58b7040a8596bc47f45d97,
type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1281286576698487906, guid: 4d11c77c6b58b7040a8596bc47f45d97,
type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1281286576698487906, guid: 4d11c77c6b58b7040a8596bc47f45d97,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1281286576698487906, guid: 4d11c77c6b58b7040a8596bc47f45d97,
type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1281286576698487906, guid: 4d11c77c6b58b7040a8596bc47f45d97,
type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1281286576698487906, guid: 4d11c77c6b58b7040a8596bc47f45d97,
type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1281286576698487906, guid: 4d11c77c6b58b7040a8596bc47f45d97,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 1281286576698487906, guid: 4d11c77c6b58b7040a8596bc47f45d97,
type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1281286576698487906, guid: 4d11c77c6b58b7040a8596bc47f45d97,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1281286576698487906, guid: 4d11c77c6b58b7040a8596bc47f45d97,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1281286576698487906, guid: 4d11c77c6b58b7040a8596bc47f45d97,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
m_RemovedComponents:
- {fileID: -641725564868193174, guid: 4d11c77c6b58b7040a8596bc47f45d97, type: 3}
- {fileID: 6187295151528677371, guid: 4d11c77c6b58b7040a8596bc47f45d97, type: 3}
m_SourcePrefab: {fileID: 100100000, guid: 4d11c77c6b58b7040a8596bc47f45d97, type: 3}
--- !u!1 &7954727171190983878 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 588491153375435794, guid: 4d11c77c6b58b7040a8596bc47f45d97,
type: 3}
m_PrefabInstance: {fileID: 7371939184763441364}
m_PrefabAsset: {fileID: 0}
--- !u!4 &8612686764740273334 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 1281286576698487906, guid: 4d11c77c6b58b7040a8596bc47f45d97,
type: 3}
m_PrefabInstance: {fileID: 7371939184763441364}
m_PrefabAsset: {fileID: 0}

+ 7
- 0
Assets/WorldAssets/Prefabs/Horse.prefab.meta View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: f5c2c9744b6f46e4e95ca41ab1d8d560
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

Loading…
Cancel
Save