Combat & Visibility & Collisions

Converted entity materials to new fade shader
Implemented visibility system
Refactored per-instance entity code to run inside monobehavior on entity instances
Created state machine AI for enemy ships with basic patrol and combat routines
Removed legacy AI code (controller item behaviors)
Added automatic trigger group assignment for matched weapons
Created ship collision system
Created shield VFX and colliders
This commit is contained in:
Reinier Vens 2021-02-26 19:01:47 +00:00
commit b53e4aec8c
204 changed files with 8182 additions and 1919 deletions

View file

@ -26,7 +26,7 @@ RenderSettings:
m_AmbientIntensity: 1
m_AmbientMode: 3
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
m_SkyboxMaterial: {fileID: 2100000, guid: 79db663d2fbb102459f8b1caf620f8c9, type: 2}
m_HaloStrength: 0.5
m_FlareStrength: 1
m_FlareFadeSpeed: 3
@ -38,7 +38,7 @@ RenderSettings:
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 0}
m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1}
m_IndirectSpecularColor: {r: 0.18113758, g: 0.20078251, b: 0.17357464, a: 1}
m_UseRadianceAmbientProbe: 0
--- !u!157 &4
LightmapSettings:
@ -97,7 +97,8 @@ LightmapSettings:
m_ExportTrainingData: 0
m_TrainingDataDestination: TrainingData
m_LightProbeSampleCountMultiplier: 4
m_LightingDataAsset: {fileID: 0}
m_LightingDataAsset: {fileID: 112000000, guid: 8be4e064def86184fa0fc3069be9b9ec,
type: 2}
m_LightingSettings: {fileID: 1821185769}
--- !u!196 &5
NavMeshSettings:
@ -182,7 +183,7 @@ MonoBehaviour:
jitterSpread: 0.75
sharpness: 0.25
stationaryBlending: 0.95
motionBlending: 0.85
motionBlending: 0
subpixelMorphologicalAntialiasing:
quality: 2
fastApproximateAntialiasing:
@ -269,13 +270,13 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 104940725}
m_LocalRotation: {x: -0.2419218, y: 0, z: 0, w: 0.9702958}
m_LocalPosition: {x: 0, y: 0, z: -330}
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: 310526803}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: -28, y: 0, z: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &310526802
GameObject:
m_ObjectHideFlags: 0
@ -315,12 +316,159 @@ MonoBehaviour:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 310526802}
m_Enabled: 1
m_Enabled: 0
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 47e64413aeb5ae740b410d70fb05d20c, type: 3}
m_Name:
m_EditorClassIdentifier:
rotSpeed: {x: 0, y: 15, z: 0}
--- !u!1001 &426221916
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 8326552097884649274, guid: 897fa55d98f1f7f40b889f93ce9146f4,
type: 3}
propertyPath: Duration
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8402070500206635106, guid: 897fa55d98f1f7f40b889f93ce9146f4,
type: 3}
propertyPath: m_Name
value: Shield
objectReference: {fileID: 0}
- target: {fileID: 9112456537762432107, guid: 897fa55d98f1f7f40b889f93ce9146f4,
type: 3}
propertyPath: m_RootOrder
value: 4
objectReference: {fileID: 0}
- target: {fileID: 9112456537762432107, guid: 897fa55d98f1f7f40b889f93ce9146f4,
type: 3}
propertyPath: m_LocalPosition.x
value: -10
objectReference: {fileID: 0}
- target: {fileID: 9112456537762432107, guid: 897fa55d98f1f7f40b889f93ce9146f4,
type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9112456537762432107, guid: 897fa55d98f1f7f40b889f93ce9146f4,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9112456537762432107, guid: 897fa55d98f1f7f40b889f93ce9146f4,
type: 3}
propertyPath: m_LocalRotation.w
value: 0.7071068
objectReference: {fileID: 0}
- target: {fileID: 9112456537762432107, guid: 897fa55d98f1f7f40b889f93ce9146f4,
type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9112456537762432107, guid: 897fa55d98f1f7f40b889f93ce9146f4,
type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9112456537762432107, guid: 897fa55d98f1f7f40b889f93ce9146f4,
type: 3}
propertyPath: m_LocalRotation.z
value: 0.7071068
objectReference: {fileID: 0}
- target: {fileID: 9112456537762432107, guid: 897fa55d98f1f7f40b889f93ce9146f4,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9112456537762432107, guid: 897fa55d98f1f7f40b889f93ce9146f4,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9112456537762432107, guid: 897fa55d98f1f7f40b889f93ce9146f4,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 90
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 897fa55d98f1f7f40b889f93ce9146f4, type: 3}
--- !u!1001 &924112690
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 235077144, guid: 897fa55d98f1f7f40b889f93ce9146f4, type: 3}
propertyPath: m_RootOrder
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8402070500206635106, guid: 897fa55d98f1f7f40b889f93ce9146f4,
type: 3}
propertyPath: m_Name
value: Shield (1)
objectReference: {fileID: 0}
- target: {fileID: 9112456537762432107, guid: 897fa55d98f1f7f40b889f93ce9146f4,
type: 3}
propertyPath: m_RootOrder
value: 5
objectReference: {fileID: 0}
- target: {fileID: 9112456537762432107, guid: 897fa55d98f1f7f40b889f93ce9146f4,
type: 3}
propertyPath: m_LocalPosition.x
value: 10
objectReference: {fileID: 0}
- target: {fileID: 9112456537762432107, guid: 897fa55d98f1f7f40b889f93ce9146f4,
type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9112456537762432107, guid: 897fa55d98f1f7f40b889f93ce9146f4,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9112456537762432107, guid: 897fa55d98f1f7f40b889f93ce9146f4,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 9112456537762432107, guid: 897fa55d98f1f7f40b889f93ce9146f4,
type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9112456537762432107, guid: 897fa55d98f1f7f40b889f93ce9146f4,
type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9112456537762432107, guid: 897fa55d98f1f7f40b889f93ce9146f4,
type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9112456537762432107, guid: 897fa55d98f1f7f40b889f93ce9146f4,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9112456537762432107, guid: 897fa55d98f1f7f40b889f93ce9146f4,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9112456537762432107, guid: 897fa55d98f1f7f40b889f93ce9146f4,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 897fa55d98f1f7f40b889f93ce9146f4, type: 3}
--- !u!1 &1812750579
GameObject:
m_ObjectHideFlags: 0
@ -546,5 +694,10 @@ PrefabInstance:
propertyPath: m_Name
value: Lightning
objectReference: {fileID: 0}
- target: {fileID: 7383646976225659343, guid: eb3a880755444d144a4d7f13ef11df77,
type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: eb3a880755444d144a4d7f13ef11df77, type: 3}