fixed issues with prototype

This commit is contained in:
Nilton Constantino 2026-06-13 13:20:58 +01:00
parent d5ea686f2c
commit 998fd1e462
No known key found for this signature in database
37 changed files with 9773 additions and 14676 deletions

View File

@ -0,0 +1,322 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &1146391786149679500
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 4089360858264239107}
- component: {fileID: 5094209182163755379}
- component: {fileID: 6166895172714925370}
m_Layer: 30
m_Name: PrototypeMesh
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &4089360858264239107
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1146391786149679500}
serializedVersion: 2
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_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 3735386465394164932}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!23 &5094209182163755379
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1146391786149679500}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RayTracingAccelStructBuildFlagsOverride: 0
m_RayTracingAccelStructBuildFlags: 1
m_SmallMeshCulling: 1
m_ForceMeshLod: -1
m_MeshLodSelectionBias: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: 188d15e48617c45348c903c97d78dce1, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_GlobalIlluminationMeshLod: 0
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_MaskInteraction: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!33 &6166895172714925370
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1146391786149679500}
m_Mesh: {fileID: 0}
--- !u!1 &1846517854702871200
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 5627504363624554856}
m_Layer: 30
m_Name: Gameplay
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &5627504363624554856
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1846517854702871200}
serializedVersion: 2
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_ConstrainProportionsScale: 0
m_Children:
- {fileID: 3634560927465222023}
m_Father: {fileID: 369205274101430871}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1994681655634493814
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 369205274101430871}
- component: {fileID: 3563105585321411375}
m_Layer: 30
m_Name: Model
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &369205274101430871
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1994681655634493814}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 1, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 3735386465394164932}
- {fileID: 5627504363624554856}
- {fileID: 5317143175429543230}
m_Father: {fileID: 7939123536182165016}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &3563105585321411375
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1994681655634493814}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f20bd3bb11c64d00a0429af5fe4bd33f, type: 3}
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::Intrepid.Gameplay.Prototyping.PrototypeModel
debugMeshFilter: {fileID: 6166895172714925370}
debugRenderer: {fileID: 5094209182163755379}
boxCollider: {fileID: 3020532133659471693}
--- !u!1 &3699641885520923282
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 3634560927465222023}
- component: {fileID: 3020532133659471693}
m_Layer: 30
m_Name: ContactSurface
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &3634560927465222023
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3699641885520923282}
serializedVersion: 2
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_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 5627504363624554856}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!65 &3020532133659471693
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3699641885520923282}
m_Material: {fileID: 0}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 1
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_IsTrigger: 0
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 3
m_Size: {x: 2, y: 2, z: 6}
m_Center: {x: 0, y: 0, z: 0}
--- !u!1 &6107183257701196118
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 3735386465394164932}
m_Layer: 30
m_Name: Debug
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &3735386465394164932
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6107183257701196118}
serializedVersion: 2
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_ConstrainProportionsScale: 0
m_Children:
- {fileID: 4089360858264239107}
m_Father: {fileID: 369205274101430871}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &6323946283060980301
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 5317143175429543230}
m_Layer: 30
m_Name: VisualRoot
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &5317143175429543230
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6323946283060980301}
serializedVersion: 2
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_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 369205274101430871}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &8449749668273782584
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7939123536182165016}
m_Layer: 30
m_Name: '# Contact_Prototype_BASE'
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &7939123536182165016
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8449749668273782584}
serializedVersion: 2
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 5}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 369205274101430871}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: b91c6f8a2a29e4cf29d7df740085410b
guid: 64620cfd283d648b5b4d9c9a4fac7751
PrefabImporter:
externalObjects: {}
userData:

View File

@ -0,0 +1,338 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &430700976993576308
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 5897133847067807538}
m_Layer: 31
m_Name: VisualRoot
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &5897133847067807538
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 430700976993576308}
serializedVersion: 2
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_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 3352223124200162652}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &4097133775081348457
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 8867125265561064001}
m_Layer: 31
m_Name: Gameplay
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &8867125265561064001
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4097133775081348457}
serializedVersion: 2
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_ConstrainProportionsScale: 0
m_Children:
- {fileID: 4990331727855981778}
m_Father: {fileID: 3352223124200162652}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &5374375792332365831
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 4990331727855981778}
- component: {fileID: 6392326082573612157}
- component: {fileID: 101776470001583037}
m_Layer: 31
m_Name: GroundSurface
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &4990331727855981778
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5374375792332365831}
serializedVersion: 2
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_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 8867125265561064001}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!65 &6392326082573612157
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5374375792332365831}
m_Material: {fileID: 0}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 2147483648
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_IsTrigger: 0
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 3
m_Size: {x: 1, y: 1, z: 1}
m_Center: {x: 0, y: 0, z: 0}
--- !u!114 &101776470001583037
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5374375792332365831}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: b0fc6d26030c4e308d1ef10d22a90833, type: 3}
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::Intrepid.Core.Grounding.GroundSurface
boxCollider: {fileID: 6392326082573612157}
safe: 1
groundProfileMotion: {fileID: 0}
--- !u!1 &6439449681432079181
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 3352223124200162652}
- component: {fileID: 138583005792719455}
m_Layer: 31
m_Name: Model
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &3352223124200162652
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6439449681432079181}
serializedVersion: 2
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_ConstrainProportionsScale: 0
m_Children:
- {fileID: 1270817936146179001}
- {fileID: 8867125265561064001}
- {fileID: 5897133847067807538}
m_Father: {fileID: 2109134711161568785}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &138583005792719455
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6439449681432079181}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f20bd3bb11c64d00a0429af5fe4bd33f, type: 3}
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::Intrepid.Gameplay.Prototyping.PrototypeModel
debugMeshFilter: {fileID: 221717111884494654}
debugRenderer: {fileID: 3628412641931900360}
boxCollider: {fileID: 6392326082573612157}
--- !u!1 &6524376507900539265
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2109134711161568785}
m_Layer: 31
m_Name: '# Ground_Prototype_BASE'
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &2109134711161568785
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6524376507900539265}
serializedVersion: 2
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_ConstrainProportionsScale: 0
m_Children:
- {fileID: 3352223124200162652}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &6524882981257070217
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1270817936146179001}
m_Layer: 31
m_Name: Debug
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1270817936146179001
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6524882981257070217}
serializedVersion: 2
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_ConstrainProportionsScale: 0
m_Children:
- {fileID: 8478978465931315779}
m_Father: {fileID: 3352223124200162652}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &7302436227064528695
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 8478978465931315779}
- component: {fileID: 3628412641931900360}
- component: {fileID: 221717111884494654}
m_Layer: 31
m_Name: PrototypeMesh
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &8478978465931315779
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7302436227064528695}
serializedVersion: 2
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_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 1270817936146179001}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!23 &3628412641931900360
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7302436227064528695}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RayTracingAccelStructBuildFlagsOverride: 0
m_RayTracingAccelStructBuildFlags: 1
m_SmallMeshCulling: 1
m_ForceMeshLod: -1
m_MeshLodSelectionBias: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: 975923bfb406649b1b7bca5b9ec2e107, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_GlobalIlluminationMeshLod: 0
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_MaskInteraction: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!33 &221717111884494654
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7302436227064528695}
m_Mesh: {fileID: 0}

View File

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

View File

@ -1,448 +1,124 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &1146391786149679500
GameObject:
--- !u!1001 &5039190444602176516
PrefabInstance:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 4089360858264239107}
- component: {fileID: 788873071454334915}
- component: {fileID: 5094209182163755379}
- component: {fileID: 6166895172714925370}
m_Layer: 30
m_Name: Mesh
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &4089360858264239107
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1146391786149679500}
serializedVersion: 2
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_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 369205274101430871}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &788873071454334915
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 369205274101430871, guid: 64620cfd283d648b5b4d9c9a4fac7751, type: 3}
propertyPath: m_LocalPosition.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 3020532133659471693, guid: 64620cfd283d648b5b4d9c9a4fac7751, type: 3}
propertyPath: m_Size.x
value: 2
objectReference: {fileID: 0}
- target: {fileID: 3020532133659471693, guid: 64620cfd283d648b5b4d9c9a4fac7751, type: 3}
propertyPath: m_Size.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 3020532133659471693, guid: 64620cfd283d648b5b4d9c9a4fac7751, type: 3}
propertyPath: m_Size.z
value: 2
objectReference: {fileID: 0}
- target: {fileID: 5094209182163755379, guid: 64620cfd283d648b5b4d9c9a4fac7751, type: 3}
propertyPath: m_Enabled
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6166895172714925370, guid: 64620cfd283d648b5b4d9c9a4fac7751, type: 3}
propertyPath: m_Mesh
value:
objectReference: {fileID: 0}
- target: {fileID: 7939123536182165016, guid: 64620cfd283d648b5b4d9c9a4fac7751, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7939123536182165016, guid: 64620cfd283d648b5b4d9c9a4fac7751, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7939123536182165016, guid: 64620cfd283d648b5b4d9c9a4fac7751, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7939123536182165016, guid: 64620cfd283d648b5b4d9c9a4fac7751, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7939123536182165016, guid: 64620cfd283d648b5b4d9c9a4fac7751, type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 7939123536182165016, guid: 64620cfd283d648b5b4d9c9a4fac7751, type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 7939123536182165016, guid: 64620cfd283d648b5b4d9c9a4fac7751, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 7939123536182165016, guid: 64620cfd283d648b5b4d9c9a4fac7751, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7939123536182165016, guid: 64620cfd283d648b5b4d9c9a4fac7751, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7939123536182165016, guid: 64620cfd283d648b5b4d9c9a4fac7751, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8449749668273782584, guid: 64620cfd283d648b5b4d9c9a4fac7751, type: 3}
propertyPath: m_Name
value: Contact_Cube_Prototype
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents:
- targetCorrespondingSourceObject: {fileID: 8449749668273782584, guid: 64620cfd283d648b5b4d9c9a4fac7751, type: 3}
insertIndex: -1
addedObject: {fileID: 7180750725527117791}
m_SourcePrefab: {fileID: 100100000, guid: 64620cfd283d648b5b4d9c9a4fac7751, type: 3}
--- !u!1 &3507538365578791740 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 8449749668273782584, guid: 64620cfd283d648b5b4d9c9a4fac7751, type: 3}
m_PrefabInstance: {fileID: 5039190444602176516}
m_PrefabAsset: {fileID: 0}
--- !u!114 &7180750725527117791
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1146391786149679500}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 8233d90336aea43098adf6dbabd606a2, type: 3}
m_Name:
m_EditorClassIdentifier: Unity.ProBuilder::UnityEngine.ProBuilder.ProBuilderMesh
m_MeshFormatVersion: 2
m_Faces:
- m_Indexes: 000000000100000002000000010000000300000002000000
m_SmoothingGroup: 0
m_Uv:
m_UseWorldSpace: 0
m_FlipU: 0
m_FlipV: 0
m_SwapUV: 0
m_Fill: 1
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Rotation: 0
m_Anchor: 0
m_Material: {fileID: 0}
m_SubmeshIndex: 0
m_ManualUV: 0
elementGroup: -1
m_TextureGroup: -1
- m_Indexes: 040000000500000006000000050000000700000006000000
m_SmoothingGroup: 0
m_Uv:
m_UseWorldSpace: 0
m_FlipU: 0
m_FlipV: 0
m_SwapUV: 0
m_Fill: 1
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Rotation: 0
m_Anchor: 0
m_Material: {fileID: 0}
m_SubmeshIndex: 0
m_ManualUV: 0
elementGroup: -1
m_TextureGroup: -1
- m_Indexes: 08000000090000000a000000090000000b0000000a000000
m_SmoothingGroup: 0
m_Uv:
m_UseWorldSpace: 0
m_FlipU: 0
m_FlipV: 0
m_SwapUV: 0
m_Fill: 1
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Rotation: 0
m_Anchor: 0
m_Material: {fileID: 0}
m_SubmeshIndex: 0
m_ManualUV: 0
elementGroup: -1
m_TextureGroup: -1
- m_Indexes: 0c0000000d0000000e0000000d0000000f0000000e000000
m_SmoothingGroup: 0
m_Uv:
m_UseWorldSpace: 0
m_FlipU: 0
m_FlipV: 0
m_SwapUV: 0
m_Fill: 1
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Rotation: 0
m_Anchor: 0
m_Material: {fileID: 0}
m_SubmeshIndex: 0
m_ManualUV: 0
elementGroup: -1
m_TextureGroup: -1
- m_Indexes: 100000001100000012000000110000001300000012000000
m_SmoothingGroup: 0
m_Uv:
m_UseWorldSpace: 0
m_FlipU: 0
m_FlipV: 0
m_SwapUV: 0
m_Fill: 1
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Rotation: 0
m_Anchor: 0
m_Material: {fileID: 0}
m_SubmeshIndex: 0
m_ManualUV: 0
elementGroup: -1
m_TextureGroup: -1
- m_Indexes: 140000001500000016000000150000001700000016000000
m_SmoothingGroup: 0
m_Uv:
m_UseWorldSpace: 0
m_FlipU: 0
m_FlipV: 0
m_SwapUV: 0
m_Fill: 1
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Rotation: 0
m_Anchor: 0
m_Material: {fileID: 0}
m_SubmeshIndex: 0
m_ManualUV: 0
elementGroup: -1
m_TextureGroup: -1
m_SharedVertices:
- m_Vertices: 000000000d00000016000000
- m_Vertices: 010000000400000017000000
- m_Vertices: 020000000f00000010000000
- m_Vertices: 030000000600000011000000
- m_Vertices: 050000000800000015000000
- m_Vertices: 070000000a00000013000000
- m_Vertices: 090000000c00000014000000
- m_Vertices: 0b0000000e00000012000000
m_SharedTextures: []
m_Positions:
- {x: -0.5, y: -1, z: 2.5}
- {x: 0.5, y: -1, z: 2.5}
- {x: -0.5, y: 1, z: 2.5}
- {x: 0.5, y: 1, z: 2.5}
- {x: 0.5, y: -1, z: 2.5}
- {x: 0.5, y: -1, z: -2.5}
- {x: 0.5, y: 1, z: 2.5}
- {x: 0.5, y: 1, z: -2.5}
- {x: 0.5, y: -1, z: -2.5}
- {x: -0.5, y: -1, z: -2.5}
- {x: 0.5, y: 1, z: -2.5}
- {x: -0.5, y: 1, z: -2.5}
- {x: -0.5, y: -1, z: -2.5}
- {x: -0.5, y: -1, z: 2.5}
- {x: -0.5, y: 1, z: -2.5}
- {x: -0.5, y: 1, z: 2.5}
- {x: -0.5, y: 1, z: 2.5}
- {x: 0.5, y: 1, z: 2.5}
- {x: -0.5, y: 1, z: -2.5}
- {x: 0.5, y: 1, z: -2.5}
- {x: -0.5, y: -1, z: -2.5}
- {x: 0.5, y: -1, z: -2.5}
- {x: -0.5, y: -1, z: 2.5}
- {x: 0.5, y: -1, z: 2.5}
m_Textures0:
- {x: 1, y: -1}
- {x: 0, y: -1}
- {x: 1, y: 1}
- {x: 0, y: 1}
- {x: 5, y: -1}
- {x: 0, y: -1}
- {x: 5, y: 1}
- {x: 0, y: 1}
- {x: 1, y: -1}
- {x: 0, y: -1}
- {x: 1, y: 1}
- {x: 0, y: 1}
- {x: 5, y: -1}
- {x: 0, y: -1}
- {x: 5, y: 1}
- {x: 0, y: 1}
- {x: 0, y: 1}
- {x: 1, y: 1}
- {x: 0, y: -4}
- {x: 1, y: -4}
- {x: 1, y: -4}
- {x: 0, y: -4}
- {x: 1, y: 1}
- {x: 0, y: 1}
m_Textures2: []
m_Textures3: []
m_Tangents:
- {x: -1, y: 0, z: 0, w: -1}
- {x: -1, y: 0, z: 0, w: -1}
- {x: -1, y: 0, z: 0, w: -1}
- {x: -1, y: 0, z: 0, w: -1}
- {x: 0, y: 0, z: 1, w: -1}
- {x: 0, y: 0, z: 1, w: -1}
- {x: 0, y: 0, z: 1, w: -1}
- {x: 0, y: 0, z: 1, w: -1}
- {x: 1, y: 0, z: 0, w: -1}
- {x: 1, y: 0, z: 0, w: -1}
- {x: 1, y: 0, z: 0, w: -1}
- {x: 1, y: 0, z: 0, w: -1}
- {x: 0, y: 0, z: -1, w: -1}
- {x: 0, y: 0, z: -1, w: -1}
- {x: 0, y: 0, z: -1, w: -1}
- {x: 0, y: 0, z: -1, w: -1}
- {x: 1, y: 0, z: 0, w: -1}
- {x: 1, y: 0, z: 0, w: -1}
- {x: 1, y: 0, z: 0, w: -1}
- {x: 1, y: 0, z: 0, w: -1}
- {x: -1, y: 0, z: 0, w: -1}
- {x: -1, y: 0, z: 0, w: -1}
- {x: -1, y: 0, z: 0, w: -1}
- {x: -1, y: 0, z: 0, w: -1}
m_Colors: []
m_UnwrapParameters:
m_HardAngle: 88
m_PackMargin: 20
m_AngleError: 8
m_AreaError: 15
m_PreserveMeshAssetOnDestroy: 0
assetGuid:
m_Mesh: {fileID: 0}
m_VersionIndex: 210
m_IsSelectable: 1
m_SelectedFaces:
m_SelectedEdges: []
m_SelectedVertices:
--- !u!23 &5094209182163755379
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1146391786149679500}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RayTracingAccelStructBuildFlagsOverride: 0
m_RayTracingAccelStructBuildFlags: 1
m_SmallMeshCulling: 1
m_ForceMeshLod: -1
m_MeshLodSelectionBias: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: 188d15e48617c45348c903c97d78dce1, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_GlobalIlluminationMeshLod: 0
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_MaskInteraction: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!33 &6166895172714925370
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1146391786149679500}
m_Mesh: {fileID: 0}
--- !u!1 &1994681655634493814
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 369205274101430871}
m_Layer: 30
m_Name: Model
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &369205274101430871
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1994681655634493814}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 1, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 4089360858264239107}
- {fileID: 3634560927465222023}
m_Father: {fileID: 7939123536182165016}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &3699641885520923282
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 3634560927465222023}
- component: {fileID: 3020532133659471693}
m_Layer: 30
m_Name: ContactSurface
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &3634560927465222023
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3699641885520923282}
serializedVersion: 2
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_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 369205274101430871}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!65 &3020532133659471693
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3699641885520923282}
m_Material: {fileID: 0}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 1
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_IsTrigger: 0
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 3
m_Size: {x: 2, y: 2, z: 6}
m_Center: {x: 0, y: 0, z: 0}
--- !u!1 &8449749668273782584
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7939123536182165016}
- component: {fileID: 1435052020547518031}
m_Layer: 30
m_Name: Contact_Cube_Prototype
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &7939123536182165016
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8449749668273782584}
serializedVersion: 2
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 5}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 369205274101430871}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1435052020547518031
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8449749668273782584}
m_GameObject: {fileID: 3507538365578791740}
m_Enabled: 0
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ccf30362a82f4d67958b61569d4cf1b4, type: 3}
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::Intrepid.Gameplay.Prototyping.ContactModelPrototype
m_EditorClassIdentifier: Assembly-CSharp::Intrepid.Gameplay.Prototyping.ContactCubeModelPrototype
displayDebug: 0
prototypeModel: {fileID: 8402728050198132523}
sizeX: 1
sizeY: 2
sizeZ: 5
sizeY: 1
sizeZ: 1
offset: 1
model: {fileID: 369205274101430871}
proBuilderMesh: {fileID: 788873071454334915}
boxCollider: {fileID: 3020532133659471693}
x: 1
y: 1
z: 1
contact_offset: 1
--- !u!114 &8402728050198132523 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 3563105585321411375, guid: 64620cfd283d648b5b4d9c9a4fac7751, type: 3}
m_PrefabInstance: {fileID: 5039190444602176516}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f20bd3bb11c64d00a0429af5fe4bd33f, type: 3}
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::Intrepid.Gameplay.Prototyping.PrototypeModel

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: a3d0064b09c33436da55429c472fc6bd
guid: 8c7930f2bdde349c8a3ae496a29eecd8
PrefabImporter:
externalObjects: {}
userData:

View File

@ -1,387 +1,136 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &2139638562667644445
GameObject:
--- !u!1001 &2616716590866171305
PrefabInstance:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 745671589661851535}
- component: {fileID: 4461476242845816847}
- component: {fileID: 536916878928366888}
- component: {fileID: 7900068240961300654}
m_Layer: 31
m_Name: Mesh
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &745671589661851535
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2139638562667644445}
serializedVersion: 2
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_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 5444869158768317327}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &4461476242845816847
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 221717111884494654, guid: 84ef2ec4df393420d973aa876a8778b6, type: 3}
propertyPath: m_Mesh
value:
objectReference: {fileID: 0}
- target: {fileID: 2109134711161568785, guid: 84ef2ec4df393420d973aa876a8778b6, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2109134711161568785, guid: 84ef2ec4df393420d973aa876a8778b6, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2109134711161568785, guid: 84ef2ec4df393420d973aa876a8778b6, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2109134711161568785, guid: 84ef2ec4df393420d973aa876a8778b6, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2109134711161568785, guid: 84ef2ec4df393420d973aa876a8778b6, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2109134711161568785, guid: 84ef2ec4df393420d973aa876a8778b6, type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2109134711161568785, guid: 84ef2ec4df393420d973aa876a8778b6, type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2109134711161568785, guid: 84ef2ec4df393420d973aa876a8778b6, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2109134711161568785, guid: 84ef2ec4df393420d973aa876a8778b6, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2109134711161568785, guid: 84ef2ec4df393420d973aa876a8778b6, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3352223124200162652, guid: 84ef2ec4df393420d973aa876a8778b6, type: 3}
propertyPath: m_LocalPosition.y
value: 0.25
objectReference: {fileID: 0}
- target: {fileID: 4990331727855981778, guid: 84ef2ec4df393420d973aa876a8778b6, type: 3}
propertyPath: m_LocalRotation.w
value: 0.97337925
objectReference: {fileID: 0}
- target: {fileID: 4990331727855981778, guid: 84ef2ec4df393420d973aa876a8778b6, type: 3}
propertyPath: m_LocalRotation.x
value: -0.2292004
objectReference: {fileID: 0}
- target: {fileID: 4990331727855981778, guid: 84ef2ec4df393420d973aa876a8778b6, type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4990331727855981778, guid: 84ef2ec4df393420d973aa876a8778b6, type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6392326082573612157, guid: 84ef2ec4df393420d973aa876a8778b6, type: 3}
propertyPath: m_Size.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6392326082573612157, guid: 84ef2ec4df393420d973aa876a8778b6, type: 3}
propertyPath: m_Size.y
value: 0.05
objectReference: {fileID: 0}
- target: {fileID: 6392326082573612157, guid: 84ef2ec4df393420d973aa876a8778b6, type: 3}
propertyPath: m_Size.z
value: 1.1180625
objectReference: {fileID: 0}
- target: {fileID: 6392326082573612157, guid: 84ef2ec4df393420d973aa876a8778b6, type: 3}
propertyPath: m_Center.y
value: -0.02625
objectReference: {fileID: 0}
- target: {fileID: 6524376507900539265, guid: 84ef2ec4df393420d973aa876a8778b6, type: 3}
propertyPath: m_Name
value: Ground_Ramp_Prototype
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents:
- targetCorrespondingSourceObject: {fileID: 6524376507900539265, guid: 84ef2ec4df393420d973aa876a8778b6, type: 3}
insertIndex: -1
addedObject: {fileID: 116909126457648545}
m_SourcePrefab: {fileID: 100100000, guid: 84ef2ec4df393420d973aa876a8778b6, type: 3}
--- !u!114 &2719093777726527478 stripped
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 138583005792719455, guid: 84ef2ec4df393420d973aa876a8778b6, type: 3}
m_PrefabInstance: {fileID: 2616716590866171305}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2139638562667644445}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 8233d90336aea43098adf6dbabd606a2, type: 3}
m_Script: {fileID: 11500000, guid: f20bd3bb11c64d00a0429af5fe4bd33f, type: 3}
m_Name:
m_EditorClassIdentifier: Unity.ProBuilder::UnityEngine.ProBuilder.ProBuilderMesh
m_MeshFormatVersion: 2
m_Faces:
- m_Indexes: 000000000200000003000000000000000300000001000000
m_SmoothingGroup: 0
m_Uv:
m_UseWorldSpace: 0
m_FlipU: 0
m_FlipV: 0
m_SwapUV: 0
m_Fill: 1
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Rotation: 0
m_Anchor: 9
m_Material: {fileID: 2100000, guid: c22777d6e868e4f2fb421913386b154e, type: 2}
m_SubmeshIndex: 0
m_ManualUV: 0
elementGroup: 0
m_TextureGroup: -1
- m_Indexes: 000000000100000005000000000000000500000004000000
m_SmoothingGroup: 0
m_Uv:
m_UseWorldSpace: 0
m_FlipU: 0
m_FlipV: 0
m_SwapUV: 0
m_Fill: 1
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Rotation: 0
m_Anchor: 9
m_Material: {fileID: 2100000, guid: c22777d6e868e4f2fb421913386b154e, type: 2}
m_SubmeshIndex: 0
m_ManualUV: 0
elementGroup: 0
m_TextureGroup: -1
- m_Indexes: 020000000400000005000000020000000500000003000000
m_SmoothingGroup: 0
m_Uv:
m_UseWorldSpace: 0
m_FlipU: 0
m_FlipV: 0
m_SwapUV: 0
m_Fill: 1
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Rotation: 0
m_Anchor: 9
m_Material: {fileID: 2100000, guid: c22777d6e868e4f2fb421913386b154e, type: 2}
m_SubmeshIndex: 0
m_ManualUV: 0
elementGroup: 0
m_TextureGroup: -1
- m_Indexes: 000000000400000002000000
m_SmoothingGroup: 0
m_Uv:
m_UseWorldSpace: 0
m_FlipU: 0
m_FlipV: 0
m_SwapUV: 0
m_Fill: 1
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Rotation: 0
m_Anchor: 9
m_Material: {fileID: 2100000, guid: c22777d6e868e4f2fb421913386b154e, type: 2}
m_SubmeshIndex: 0
m_ManualUV: 0
elementGroup: 0
m_TextureGroup: -1
- m_Indexes: 010000000300000005000000
m_SmoothingGroup: 0
m_Uv:
m_UseWorldSpace: 0
m_FlipU: 0
m_FlipV: 0
m_SwapUV: 0
m_Fill: 1
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Rotation: 0
m_Anchor: 9
m_Material: {fileID: 2100000, guid: c22777d6e868e4f2fb421913386b154e, type: 2}
m_SubmeshIndex: 0
m_ManualUV: 0
elementGroup: 0
m_TextureGroup: -1
m_SharedVertices:
- m_Vertices: 00000000
- m_Vertices: 01000000
- m_Vertices: 02000000
- m_Vertices: 03000000
- m_Vertices: 04000000
- m_Vertices: 05000000
m_SharedTextures: []
m_Positions:
- {x: -0.5, y: -0.25, z: -0.5}
- {x: 0.5, y: -0.25, z: -0.5}
- {x: -0.5, y: -0.25, z: 0.5}
- {x: 0.5, y: -0.25, z: 0.5}
- {x: -0.5, y: 0.25, z: 0.5}
- {x: 0.5, y: 0.25, z: 0.5}
m_Textures0:
- {x: -0.5, y: -0.25}
- {x: 0.5, y: -0.25}
- {x: 0.5, y: -0.25}
- {x: -0.5, y: -0.25}
- {x: 0.5, y: 0.25}
- {x: -0.5, y: 0.25}
m_Textures2: []
m_Textures3: []
m_Tangents:
- {x: -0.2065907, y: 0.97842747, z: 0, w: 1}
- {x: -0.10498935, y: -0.99447334, z: 0, w: 1}
- {x: 0, y: 0.8944272, z: 0.4472136, w: 1}
- {x: -0.8944272, y: -0.4472136, z: 0, w: 1}
- {x: -0.5706361, y: -0.78567, z: 0.23895018, w: -1}
- {x: -0.7952183, y: 0.57084435, z: -0.20436382, w: -1}
m_Colors: []
m_UnwrapParameters:
m_HardAngle: 88
m_PackMargin: 20
m_AngleError: 8
m_AreaError: 15
m_PreserveMeshAssetOnDestroy: 0
assetGuid:
m_Mesh: {fileID: 0}
m_VersionIndex: 475
m_IsSelectable: 1
m_SelectedFaces:
m_SelectedEdges: []
m_SelectedVertices:
--- !u!23 &536916878928366888
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2139638562667644445}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RayTracingAccelStructBuildFlagsOverride: 0
m_RayTracingAccelStructBuildFlags: 1
m_SmallMeshCulling: 1
m_ForceMeshLod: -1
m_MeshLodSelectionBias: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: 975923bfb406649b1b7bca5b9ec2e107, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_GlobalIlluminationMeshLod: 0
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_MaskInteraction: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!33 &7900068240961300654
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2139638562667644445}
m_Mesh: {fileID: 0}
--- !u!1 &5846101549153642878
m_EditorClassIdentifier: Assembly-CSharp::Intrepid.Gameplay.Prototyping.PrototypeModel
--- !u!1 &9140983697215042600 stripped
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 6524376507900539265, guid: 84ef2ec4df393420d973aa876a8778b6, type: 3}
m_PrefabInstance: {fileID: 2616716590866171305}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7935847674090350645}
- component: {fileID: 4038726635026844703}
- component: {fileID: 4456286275689160566}
m_Layer: 31
m_Name: GroundSurface
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &7935847674090350645
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5846101549153642878}
serializedVersion: 2
m_LocalRotation: {x: -0.2292004, y: 0, z: 0, w: 0.97337925}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 5444869158768317327}
m_LocalEulerAnglesHint: {x: -26.5, y: 0, z: 0}
--- !u!65 &4038726635026844703
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5846101549153642878}
m_Material: {fileID: 0}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_IsTrigger: 0
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 3
m_Size: {x: 1, y: 0.05, z: 1.1180625}
m_Center: {x: 0, y: -0.02625, z: 0}
--- !u!114 &4456286275689160566
--- !u!114 &116909126457648545
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5846101549153642878}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: b0fc6d26030c4e308d1ef10d22a90833, type: 3}
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::Intrepid.Core.Grounding.GroundSurface
boxCollider: {fileID: 4038726635026844703}
--- !u!1 &6956502248441266554
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 5444869158768317327}
m_Layer: 31
m_Name: Model
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &5444869158768317327
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6956502248441266554}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0.25, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 745671589661851535}
- {fileID: 7935847674090350645}
m_Father: {fileID: 6264813173883718416}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &7391668900291271488
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 6264813173883718416}
- component: {fileID: 8928756976934595604}
m_Layer: 31
m_Name: Ground_Ramp_Prototype
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &6264813173883718416
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7391668900291271488}
serializedVersion: 2
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_ConstrainProportionsScale: 0
m_Children:
- {fileID: 5444869158768317327}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &8928756976934595604
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7391668900291271488}
m_GameObject: {fileID: 9140983697215042600}
m_Enabled: 0
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e6bb0400ab524185882e5d418521a758, type: 3}
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::Intrepid.Gameplay.Prototyping.GroundRampModelPrototype
displayDebug: 1
prototypeModel: {fileID: 2719093777726527478}
sizeX: 1
sizeZ: 1
model: {fileID: 5444869158768317327}
proBuilderMesh: {fileID: 4461476242845816847}
boxCollider: {fileID: 4038726635026844703}
x: 1
z: 1

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: d5f09e3d9ca134424b1900c7865fca19
guid: 321f39f98806c4db7a3deff6d508bde1
PrefabImporter:
externalObjects: {}
userData:

View File

@ -1,460 +1,120 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &5374375792332365831
GameObject:
--- !u!1001 &3858181642019091319
PrefabInstance:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 4990331727855981778}
- component: {fileID: 6392326082573612157}
- component: {fileID: 101776470001583037}
m_Layer: 31
m_Name: GroundSurface
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &4990331727855981778
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5374375792332365831}
serializedVersion: 2
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_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 3352223124200162652}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!65 &6392326082573612157
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5374375792332365831}
m_Material: {fileID: 0}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 2147483648
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_IsTrigger: 0
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 3
m_Size: {x: 1, y: 0.5, z: 1}
m_Center: {x: 0, y: 0, z: 0}
--- !u!114 &101776470001583037
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 221717111884494654, guid: 84ef2ec4df393420d973aa876a8778b6, type: 3}
propertyPath: m_Mesh
value:
objectReference: {fileID: 0}
- target: {fileID: 2109134711161568785, guid: 84ef2ec4df393420d973aa876a8778b6, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2109134711161568785, guid: 84ef2ec4df393420d973aa876a8778b6, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2109134711161568785, guid: 84ef2ec4df393420d973aa876a8778b6, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2109134711161568785, guid: 84ef2ec4df393420d973aa876a8778b6, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2109134711161568785, guid: 84ef2ec4df393420d973aa876a8778b6, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2109134711161568785, guid: 84ef2ec4df393420d973aa876a8778b6, type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2109134711161568785, guid: 84ef2ec4df393420d973aa876a8778b6, type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2109134711161568785, guid: 84ef2ec4df393420d973aa876a8778b6, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2109134711161568785, guid: 84ef2ec4df393420d973aa876a8778b6, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2109134711161568785, guid: 84ef2ec4df393420d973aa876a8778b6, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2212457409070270700, guid: 84ef2ec4df393420d973aa876a8778b6, type: 3}
propertyPath: m_VersionIndex
value: 375
objectReference: {fileID: 0}
- target: {fileID: 3352223124200162652, guid: 84ef2ec4df393420d973aa876a8778b6, type: 3}
propertyPath: m_LocalPosition.y
value: -0.25
objectReference: {fileID: 0}
- target: {fileID: 6392326082573612157, guid: 84ef2ec4df393420d973aa876a8778b6, type: 3}
propertyPath: m_Size.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6392326082573612157, guid: 84ef2ec4df393420d973aa876a8778b6, type: 3}
propertyPath: m_Size.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 6392326082573612157, guid: 84ef2ec4df393420d973aa876a8778b6, type: 3}
propertyPath: m_Size.z
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6524376507900539265, guid: 84ef2ec4df393420d973aa876a8778b6, type: 3}
propertyPath: m_Name
value: Ground_Slab_Prototype
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents:
- targetCorrespondingSourceObject: {fileID: 6524376507900539265, guid: 84ef2ec4df393420d973aa876a8778b6, type: 3}
insertIndex: -1
addedObject: {fileID: 4088177062756800262}
m_SourcePrefab: {fileID: 100100000, guid: 84ef2ec4df393420d973aa876a8778b6, type: 3}
--- !u!114 &3776087149373645096 stripped
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 138583005792719455, guid: 84ef2ec4df393420d973aa876a8778b6, type: 3}
m_PrefabInstance: {fileID: 3858181642019091319}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5374375792332365831}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: b0fc6d26030c4e308d1ef10d22a90833, type: 3}
m_Script: {fileID: 11500000, guid: f20bd3bb11c64d00a0429af5fe4bd33f, type: 3}
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::Intrepid.Core.Grounding.GroundSurface
boxCollider: {fileID: 6392326082573612157}
--- !u!1 &6439449681432079181
m_EditorClassIdentifier: Assembly-CSharp::Intrepid.Gameplay.Prototyping.PrototypeModel
--- !u!1 &7998461240222122742 stripped
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 6524376507900539265, guid: 84ef2ec4df393420d973aa876a8778b6, type: 3}
m_PrefabInstance: {fileID: 3858181642019091319}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 3352223124200162652}
m_Layer: 31
m_Name: Model
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &3352223124200162652
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6439449681432079181}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: -0.25, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 8478978465931315779}
- {fileID: 4990331727855981778}
m_Father: {fileID: 2109134711161568785}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &6524376507900539265
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2109134711161568785}
- component: {fileID: 1597087542051609407}
m_Layer: 31
m_Name: Ground_Slab_Prototype
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &2109134711161568785
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6524376507900539265}
serializedVersion: 2
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_ConstrainProportionsScale: 0
m_Children:
- {fileID: 3352223124200162652}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1597087542051609407
--- !u!114 &4088177062756800262
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6524376507900539265}
m_GameObject: {fileID: 7998461240222122742}
m_Enabled: 0
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: a5779ba4c2774a39815e9e03bc53a983, type: 3}
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::Intrepid.Gameplay.Ground.GroundModelPrototype
m_EditorClassIdentifier: Assembly-CSharp::Intrepid.Gameplay.Prototyping.GroundSlabModelPrototype
displayDebug: 1
prototypeModel: {fileID: 3776087149373645096}
sizeX: 1
sizeZ: 1
model: {fileID: 3352223124200162652}
proBuilderMesh: {fileID: 2212457409070270700}
boxCollider: {fileID: 6392326082573612157}
--- !u!1 &7302436227064528695
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 8478978465931315779}
- component: {fileID: 2212457409070270700}
- component: {fileID: 3628412641931900360}
- component: {fileID: 7186094041257591047}
m_Layer: 31
m_Name: Mesh
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &8478978465931315779
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7302436227064528695}
serializedVersion: 2
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_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 3352223124200162652}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &2212457409070270700
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7302436227064528695}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 8233d90336aea43098adf6dbabd606a2, type: 3}
m_Name:
m_EditorClassIdentifier: Unity.ProBuilder::UnityEngine.ProBuilder.ProBuilderMesh
m_MeshFormatVersion: 2
m_Faces:
- m_Indexes: 000000000100000002000000010000000300000002000000
m_SmoothingGroup: 0
m_Uv:
m_UseWorldSpace: 0
m_FlipU: 0
m_FlipV: 0
m_SwapUV: 0
m_Fill: 1
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Rotation: 0
m_Anchor: 0
m_Material: {fileID: 0}
m_SubmeshIndex: 0
m_ManualUV: 0
elementGroup: -1
m_TextureGroup: -1
- m_Indexes: 040000000500000006000000050000000700000006000000
m_SmoothingGroup: 0
m_Uv:
m_UseWorldSpace: 0
m_FlipU: 0
m_FlipV: 0
m_SwapUV: 0
m_Fill: 1
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Rotation: 0
m_Anchor: 0
m_Material: {fileID: 0}
m_SubmeshIndex: 0
m_ManualUV: 0
elementGroup: -1
m_TextureGroup: -1
- m_Indexes: 08000000090000000a000000090000000b0000000a000000
m_SmoothingGroup: 0
m_Uv:
m_UseWorldSpace: 0
m_FlipU: 0
m_FlipV: 0
m_SwapUV: 0
m_Fill: 1
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Rotation: 0
m_Anchor: 0
m_Material: {fileID: 0}
m_SubmeshIndex: 0
m_ManualUV: 0
elementGroup: -1
m_TextureGroup: -1
- m_Indexes: 0c0000000d0000000e0000000d0000000f0000000e000000
m_SmoothingGroup: 0
m_Uv:
m_UseWorldSpace: 0
m_FlipU: 0
m_FlipV: 0
m_SwapUV: 0
m_Fill: 1
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Rotation: 0
m_Anchor: 0
m_Material: {fileID: 0}
m_SubmeshIndex: 0
m_ManualUV: 0
elementGroup: -1
m_TextureGroup: -1
- m_Indexes: 100000001100000012000000110000001300000012000000
m_SmoothingGroup: 0
m_Uv:
m_UseWorldSpace: 0
m_FlipU: 0
m_FlipV: 0
m_SwapUV: 0
m_Fill: 1
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Rotation: 0
m_Anchor: 0
m_Material: {fileID: 0}
m_SubmeshIndex: 0
m_ManualUV: 0
elementGroup: -1
m_TextureGroup: -1
- m_Indexes: 140000001500000016000000150000001700000016000000
m_SmoothingGroup: 0
m_Uv:
m_UseWorldSpace: 0
m_FlipU: 0
m_FlipV: 0
m_SwapUV: 0
m_Fill: 1
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Rotation: 0
m_Anchor: 0
m_Material: {fileID: 0}
m_SubmeshIndex: 0
m_ManualUV: 0
elementGroup: -1
m_TextureGroup: -1
m_SharedVertices:
- m_Vertices: 000000000d00000016000000
- m_Vertices: 010000000400000017000000
- m_Vertices: 020000000f00000010000000
- m_Vertices: 030000000600000011000000
- m_Vertices: 050000000800000015000000
- m_Vertices: 070000000a00000013000000
- m_Vertices: 090000000c00000014000000
- m_Vertices: 0b0000000e00000012000000
m_SharedTextures: []
m_Positions:
- {x: -0.5, y: -0.25, z: 0.5}
- {x: 0.5, y: -0.25, z: 0.5}
- {x: -0.5, y: 0.25, z: 0.5}
- {x: 0.5, y: 0.25, z: 0.5}
- {x: 0.5, y: -0.25, z: 0.5}
- {x: 0.5, y: -0.25, z: -0.5}
- {x: 0.5, y: 0.25, z: 0.5}
- {x: 0.5, y: 0.25, z: -0.5}
- {x: 0.5, y: -0.25, z: -0.5}
- {x: -0.5, y: -0.25, z: -0.5}
- {x: 0.5, y: 0.25, z: -0.5}
- {x: -0.5, y: 0.25, z: -0.5}
- {x: -0.5, y: -0.25, z: -0.5}
- {x: -0.5, y: -0.25, z: 0.5}
- {x: -0.5, y: 0.25, z: -0.5}
- {x: -0.5, y: 0.25, z: 0.5}
- {x: -0.5, y: 0.25, z: 0.5}
- {x: 0.5, y: 0.25, z: 0.5}
- {x: -0.5, y: 0.25, z: -0.5}
- {x: 0.5, y: 0.25, z: -0.5}
- {x: -0.5, y: -0.25, z: -0.5}
- {x: 0.5, y: -0.25, z: -0.5}
- {x: -0.5, y: -0.25, z: 0.5}
- {x: 0.5, y: -0.25, z: 0.5}
m_Textures0:
- {x: 1, y: 0.5}
- {x: 0, y: 0.5}
- {x: 1, y: 1}
- {x: 0, y: 1}
- {x: 1, y: 0.5}
- {x: 0, y: 0.5}
- {x: 1, y: 1}
- {x: 0, y: 1}
- {x: 1, y: 0.5}
- {x: 0, y: 0.5}
- {x: 1, y: 1}
- {x: 0, y: 1}
- {x: 1, y: 0.5}
- {x: 0, y: 0.5}
- {x: 1, y: 1}
- {x: 0, y: 1}
- {x: 0, y: 1}
- {x: 1, y: 1}
- {x: 0, y: 0}
- {x: 1, y: 0}
- {x: 1, y: 0}
- {x: 0, y: 0}
- {x: 1, y: 1}
- {x: 0, y: 1}
m_Textures2: []
m_Textures3: []
m_Tangents:
- {x: -1, y: 0, z: 0, w: -1}
- {x: -1, y: 0, z: 0, w: -1}
- {x: -1, y: 0, z: 0, w: -1}
- {x: -1, y: 0, z: 0, w: -1}
- {x: 0, y: 0, z: 1, w: -1}
- {x: 0, y: 0, z: 1, w: -1}
- {x: 0, y: 0, z: 1, w: -1}
- {x: 0, y: 0, z: 1, w: -1}
- {x: 1, y: 0, z: 0, w: -1}
- {x: 1, y: 0, z: 0, w: -1}
- {x: 1, y: 0, z: 0, w: -1}
- {x: 1, y: 0, z: 0, w: -1}
- {x: 0, y: 0, z: -1, w: -1}
- {x: 0, y: 0, z: -1, w: -1}
- {x: 0, y: 0, z: -1, w: -1}
- {x: 0, y: 0, z: -1, w: -1}
- {x: 1, y: 0, z: 0, w: -1}
- {x: 1, y: 0, z: 0, w: -1}
- {x: 1, y: 0, z: 0, w: -1}
- {x: 1, y: 0, z: 0, w: -1}
- {x: -1, y: 0, z: 0, w: -1}
- {x: -1, y: 0, z: 0, w: -1}
- {x: -1, y: 0, z: 0, w: -1}
- {x: -1, y: 0, z: 0, w: -1}
m_Colors: []
m_UnwrapParameters:
m_HardAngle: 88
m_PackMargin: 20
m_AngleError: 8
m_AreaError: 15
m_PreserveMeshAssetOnDestroy: 0
assetGuid:
m_Mesh: {fileID: 0}
m_VersionIndex: 254
m_IsSelectable: 1
m_SelectedFaces:
m_SelectedEdges: []
m_SelectedVertices:
--- !u!23 &3628412641931900360
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7302436227064528695}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RayTracingAccelStructBuildFlagsOverride: 0
m_RayTracingAccelStructBuildFlags: 1
m_SmallMeshCulling: 1
m_ForceMeshLod: -1
m_MeshLodSelectionBias: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: 975923bfb406649b1b7bca5b9ec2e107, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_GlobalIlluminationMeshLod: 0
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_MaskInteraction: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!33 &7186094041257591047
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7302436227064528695}
m_Mesh: {fileID: 0}
x: 1
z: 1

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 28468bc4d76574c58b20f1a932bdaf62
guid: 761db1bde191e401fa6ec87acd053bbf
PrefabImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,36 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &2063438787767332263
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1493873323317425571}
m_Layer: 30
m_Name: VisualRoot
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1493873323317425571
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2063438787767332263}
serializedVersion: 2
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_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 5788047604724794310}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &4687883212074896997
GameObject:
m_ObjectHideFlags: 0
@ -9,6 +40,7 @@ GameObject:
serializedVersion: 6
m_Component:
- component: {fileID: 5788047604724794310}
- component: {fileID: 1235280944685753087}
m_Layer: 30
m_Name: Modal
m_TagString: Untagged
@ -25,13 +57,61 @@ Transform:
m_GameObject: {fileID: 4687883212074896997}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0.5, z: 0}
m_LocalPosition: {x: 0, y: 1.5, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 3468145236396983574}
- {fileID: 1703318170665668173}
- {fileID: 1493873323317425571}
m_Father: {fileID: 4327722164606231862}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1235280944685753087
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4687883212074896997}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f20bd3bb11c64d00a0429af5fe4bd33f, type: 3}
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::Intrepid.Gameplay.Prototyping.PrototypeModel
debugMeshFilter: {fileID: 3934978131188514466}
debugRenderer: {fileID: 706111140969832978}
boxCollider: {fileID: 1364872794272454516}
--- !u!1 &5076599445735079200
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 3468145236396983574}
m_Layer: 30
m_Name: Debug
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &3468145236396983574
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5076599445735079200}
serializedVersion: 2
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_ConstrainProportionsScale: 0
m_Children:
- {fileID: 8834117376258967636}
- {fileID: 7464837258656678224}
m_Father: {fileID: 4327722164606231862}
m_Father: {fileID: 5788047604724794310}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &6135255630620776506
GameObject:
@ -42,7 +122,7 @@ GameObject:
serializedVersion: 6
m_Component:
- component: {fileID: 7043805075966379932}
- component: {fileID: 8049521628871277697}
- component: {fileID: 1054232045065821310}
- component: {fileID: 1255570557317129811}
- component: {fileID: 9077677737614636772}
m_Layer: 30
@ -67,7 +147,7 @@ Transform:
m_Children: []
m_Father: {fileID: 4327722164606231862}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!135 &8049521628871277697
--- !u!135 &1054232045065821310
SphereCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
@ -86,7 +166,7 @@ SphereCollider:
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 3
m_Radius: 2
m_Radius: 3
m_Center: {x: 0, y: 0, z: 0}
--- !u!114 &1255570557317129811
MonoBehaviour:
@ -101,12 +181,12 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::Intrepid.Core.Camera.CameraProximityTrigger
id: efeabf3065a744fe82cdeeba71e404e7
mainCollider: {fileID: 8049521628871277697}
mainCollider: {fileID: 1054232045065821310}
entitySensors:
- {fileID: 11400000, guid: 7d96731b441634a59ac45755cd094fff, type: 2}
behaviourTags:
- {fileID: 11400000, guid: 658e05d77a47d4e9591207114542f5fa, type: 2}
radius: 2
radius: 3
zoomLevel: 1
enterZoomVelocity: 0.5
exitZoomVelocity: 0.5
@ -123,20 +203,12 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::Intrepid.Gameplay.Entities.Sentinel.ActionBelt.ActionBeltTrigger
id: a3bec690bae54580b9e232226f84c217
mainCollider: {fileID: 8049521628871277697}
mainCollider: {fileID: 1054232045065821310}
entitySensors:
- {fileID: 11400000, guid: 7d96731b441634a59ac45755cd094fff, type: 2}
behaviourTags:
- {fileID: 11400000, guid: 658e05d77a47d4e9591207114542f5fa, type: 2}
actionCategory: 0
canBeDropped: 0
shouldDropFromBeltWhenActivated: 0
actionLocalization: {fileID: 0}
descriptionLocalization: {fileID: 0}
parameters: []
callback:
m_PersistentCalls:
m_Calls: []
callables: []
--- !u!1 &6991316504778448096
GameObject:
m_ObjectHideFlags: 0
@ -146,9 +218,9 @@ GameObject:
serializedVersion: 6
m_Component:
- component: {fileID: 4327722164606231862}
- component: {fileID: 8290248078060789801}
- component: {fileID: 5884385446689839836}
m_Layer: 30
m_Name: Interactable_Cube_Prototype
m_Name: Interactable_Prototype_BASE
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
@ -171,25 +243,31 @@ Transform:
- {fileID: 5788047604724794310}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &8290248078060789801
--- !u!114 &5884385446689839836
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6991316504778448096}
m_Enabled: 0
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 42aa640dc91d43339ddde4d64398a925, type: 3}
m_Script: {fileID: 11500000, guid: cb37ac40fcc046539f4f959071d4146a, type: 3}
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::Intrepid.Gameplay.Prototyping.InteractableCubeModelPrototype
displayDebug: 1
prototypeModel: {fileID: 1235280944685753087}
cameraProximityTrigger: {fileID: 1255570557317129811}
sizeX: 1
sizeY: 1
sizeY: 3
sizeZ: 1
offset: 1
model: {fileID: 5788047604724794310}
proBuilderMesh: {fileID: 2467042845904610137}
boxCollider: {fileID: 1364872794272454516}
hasProximityCamera: 1
radius: 3
x: 1
y: 3
z: 1
contact_offset: 1
--- !u!1 &7037144193506342921
GameObject:
m_ObjectHideFlags: 0
@ -215,12 +293,12 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7037144193506342921}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
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_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 5788047604724794310}
m_Father: {fileID: 1703318170665668173}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!65 &1364872794272454516
BoxCollider:
@ -241,8 +319,40 @@ BoxCollider:
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 3
m_Size: {x: 2, y: 1, z: 2}
m_Size: {x: 2, y: 3, z: 2}
m_Center: {x: 0, y: 0, z: 0}
--- !u!1 &8641797534045778994
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1703318170665668173}
m_Layer: 30
m_Name: Gameplay
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1703318170665668173
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8641797534045778994}
serializedVersion: 2
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_ConstrainProportionsScale: 0
m_Children:
- {fileID: 7464837258656678224}
m_Father: {fileID: 5788047604724794310}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &8841023322301212683
GameObject:
m_ObjectHideFlags: 0
@ -252,11 +362,10 @@ GameObject:
serializedVersion: 6
m_Component:
- component: {fileID: 8834117376258967636}
- component: {fileID: 2467042845904610137}
- component: {fileID: 706111140969832978}
- component: {fileID: 3934978131188514466}
m_Layer: 30
m_Name: Mesh
m_Name: PrototypeMesh
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
@ -275,225 +384,8 @@ Transform:
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 5788047604724794310}
m_Father: {fileID: 3468145236396983574}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &2467042845904610137
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8841023322301212683}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 8233d90336aea43098adf6dbabd606a2, type: 3}
m_Name:
m_EditorClassIdentifier: Unity.ProBuilder::UnityEngine.ProBuilder.ProBuilderMesh
m_MeshFormatVersion: 2
m_Faces:
- m_Indexes: 000000000100000002000000010000000300000002000000
m_SmoothingGroup: 0
m_Uv:
m_UseWorldSpace: 0
m_FlipU: 0
m_FlipV: 0
m_SwapUV: 0
m_Fill: 1
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Rotation: 0
m_Anchor: 0
m_Material: {fileID: 0}
m_SubmeshIndex: 0
m_ManualUV: 0
elementGroup: -1
m_TextureGroup: -1
- m_Indexes: 040000000500000006000000050000000700000006000000
m_SmoothingGroup: 0
m_Uv:
m_UseWorldSpace: 0
m_FlipU: 0
m_FlipV: 0
m_SwapUV: 0
m_Fill: 1
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Rotation: 0
m_Anchor: 0
m_Material: {fileID: 0}
m_SubmeshIndex: 0
m_ManualUV: 0
elementGroup: -1
m_TextureGroup: -1
- m_Indexes: 08000000090000000a000000090000000b0000000a000000
m_SmoothingGroup: 0
m_Uv:
m_UseWorldSpace: 0
m_FlipU: 0
m_FlipV: 0
m_SwapUV: 0
m_Fill: 1
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Rotation: 0
m_Anchor: 0
m_Material: {fileID: 0}
m_SubmeshIndex: 0
m_ManualUV: 0
elementGroup: -1
m_TextureGroup: -1
- m_Indexes: 0c0000000d0000000e0000000d0000000f0000000e000000
m_SmoothingGroup: 0
m_Uv:
m_UseWorldSpace: 0
m_FlipU: 0
m_FlipV: 0
m_SwapUV: 0
m_Fill: 1
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Rotation: 0
m_Anchor: 0
m_Material: {fileID: 0}
m_SubmeshIndex: 0
m_ManualUV: 0
elementGroup: -1
m_TextureGroup: -1
- m_Indexes: 100000001100000012000000110000001300000012000000
m_SmoothingGroup: 0
m_Uv:
m_UseWorldSpace: 0
m_FlipU: 0
m_FlipV: 0
m_SwapUV: 0
m_Fill: 1
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Rotation: 0
m_Anchor: 0
m_Material: {fileID: 0}
m_SubmeshIndex: 0
m_ManualUV: 0
elementGroup: -1
m_TextureGroup: -1
- m_Indexes: 140000001500000016000000150000001700000016000000
m_SmoothingGroup: 0
m_Uv:
m_UseWorldSpace: 0
m_FlipU: 0
m_FlipV: 0
m_SwapUV: 0
m_Fill: 1
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Rotation: 0
m_Anchor: 0
m_Material: {fileID: 0}
m_SubmeshIndex: 0
m_ManualUV: 0
elementGroup: -1
m_TextureGroup: -1
m_SharedVertices:
- m_Vertices: 000000000d00000016000000
- m_Vertices: 010000000400000017000000
- m_Vertices: 020000000f00000010000000
- m_Vertices: 030000000600000011000000
- m_Vertices: 050000000800000015000000
- m_Vertices: 070000000a00000013000000
- m_Vertices: 090000000c00000014000000
- m_Vertices: 0b0000000e00000012000000
m_SharedTextures: []
m_Positions:
- {x: -0.5, y: -0.5, z: 0.5}
- {x: 0.5, y: -0.5, z: 0.5}
- {x: -0.5, y: 0.5, z: 0.5}
- {x: 0.5, y: 0.5, z: 0.5}
- {x: 0.5, y: -0.5, z: 0.5}
- {x: 0.5, y: -0.5, z: -0.5}
- {x: 0.5, y: 0.5, z: 0.5}
- {x: 0.5, y: 0.5, z: -0.5}
- {x: 0.5, y: -0.5, z: -0.5}
- {x: -0.5, y: -0.5, z: -0.5}
- {x: 0.5, y: 0.5, z: -0.5}
- {x: -0.5, y: 0.5, z: -0.5}
- {x: -0.5, y: -0.5, z: -0.5}
- {x: -0.5, y: -0.5, z: 0.5}
- {x: -0.5, y: 0.5, z: -0.5}
- {x: -0.5, y: 0.5, z: 0.5}
- {x: -0.5, y: 0.5, z: 0.5}
- {x: 0.5, y: 0.5, z: 0.5}
- {x: -0.5, y: 0.5, z: -0.5}
- {x: 0.5, y: 0.5, z: -0.5}
- {x: -0.5, y: -0.5, z: -0.5}
- {x: 0.5, y: -0.5, z: -0.5}
- {x: -0.5, y: -0.5, z: 0.5}
- {x: 0.5, y: -0.5, z: 0.5}
m_Textures0:
- {x: 1, y: 0}
- {x: 0, y: 0}
- {x: 1, y: 1}
- {x: 0, y: 1}
- {x: 1, y: 0}
- {x: 0, y: 0}
- {x: 1, y: 1}
- {x: 0, y: 1}
- {x: 1, y: 0}
- {x: 0, y: 0}
- {x: 1, y: 1}
- {x: 0, y: 1}
- {x: 1, y: 0}
- {x: 0, y: 0}
- {x: 1, y: 1}
- {x: 0, y: 1}
- {x: 0, y: 1}
- {x: 1, y: 1}
- {x: 0, y: 0}
- {x: 1, y: 0}
- {x: 1, y: 0}
- {x: 0, y: 0}
- {x: 1, y: 1}
- {x: 0, y: 1}
m_Textures2: []
m_Textures3: []
m_Tangents:
- {x: -1, y: 0, z: 0, w: -1}
- {x: -1, y: 0, z: 0, w: -1}
- {x: -1, y: 0, z: 0, w: -1}
- {x: -1, y: 0, z: 0, w: -1}
- {x: 0, y: 0, z: 1, w: -1}
- {x: 0, y: 0, z: 1, w: -1}
- {x: 0, y: 0, z: 1, w: -1}
- {x: 0, y: 0, z: 1, w: -1}
- {x: 1, y: 0, z: 0, w: -1}
- {x: 1, y: 0, z: 0, w: -1}
- {x: 1, y: 0, z: 0, w: -1}
- {x: 1, y: 0, z: 0, w: -1}
- {x: 0, y: 0, z: -1, w: -1}
- {x: 0, y: 0, z: -1, w: -1}
- {x: 0, y: 0, z: -1, w: -1}
- {x: 0, y: 0, z: -1, w: -1}
- {x: 1, y: 0, z: 0, w: -1}
- {x: 1, y: 0, z: 0, w: -1}
- {x: 1, y: 0, z: 0, w: -1}
- {x: 1, y: 0, z: 0, w: -1}
- {x: -1, y: 0, z: 0, w: -1}
- {x: -1, y: 0, z: 0, w: -1}
- {x: -1, y: 0, z: 0, w: -1}
- {x: -1, y: 0, z: 0, w: -1}
m_Colors: []
m_UnwrapParameters:
m_HardAngle: 88
m_PackMargin: 20
m_AngleError: 8
m_AreaError: 15
m_PreserveMeshAssetOnDestroy: 0
assetGuid:
m_Mesh: {fileID: 0}
m_VersionIndex: 144
m_IsSelectable: 1
m_SelectedFaces:
m_SelectedEdges: []
m_SelectedVertices:
--- !u!23 &706111140969832978
MeshRenderer:
m_ObjectHideFlags: 0

View File

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

File diff suppressed because one or more lines are too long

View File

@ -5,6 +5,7 @@ using Intrepid.Core.Entities;
using Intrepid.Core.Tags;
using Intrepid.GameManagers;
using Intrepid.Utilities;
using Sirenix.OdinInspector;
using UnityEngine;
namespace Intrepid.Core.Camera
@ -16,10 +17,20 @@ namespace Intrepid.Core.Camera
[GroupConfigurations, SerializeField] private CameraZoomLevel zoomLevel = CameraZoomLevel.ZoomIn;
[GroupConfigurations, SerializeField, Range(.05f, 3f)] private float enterZoomVelocity = .5f;
[GroupConfigurations, SerializeField, Range(.05f, 3f)] private float exitZoomVelocity = .5f;
protected SphereCollider Collider => (SphereCollider) MainCollider;
private void OnValidate()
public SphereCollider Collider => (SphereCollider) MainCollider;
public float Radius
{
get => radius;
set
{
if (Collider.IsNotNull()) Collider.radius = value;
radius = value;
}
}
[GroupDebug, Button(ButtonSizes.Medium)]
private void AdjustCollider()
{
if (Collider.IsNull()) return;
Collider.isTrigger = true;

View File

@ -75,7 +75,6 @@ namespace Intrepid.Core.Grounding
DetectNormal();
DrawColliderWire();
DrawGroundPosition();
DrawGroundNormal();
}
@ -89,13 +88,7 @@ namespace Intrepid.Core.Grounding
Gizmos.matrix = previousMatrix;
}
private void DrawGroundPosition()
{
Gizmos.color = Color.cyan;
Gizmos.DrawSphere(Position, 0.08f);
}
private void DrawGroundNormal()
{
const float normalLength = 1.25f;

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 5593105892724f899d3d7222002eb866
timeCreated: 1781350991

View File

@ -0,0 +1,53 @@
using UnityEditor;
using UnityEngine;
namespace Intrepid.Core.Utilities
{
public static class GizmoUtils
{
public static void DrawWireCapsule(
Vector3 position,
Quaternion rotation,
float radius,
float height,
Color color)
{
radius = Mathf.Max(0f, radius);
height = Mathf.Max(height, radius * 2f);
var oldColor = Handles.color;
var oldMatrix = Handles.matrix;
Handles.color = color;
Handles.matrix = Matrix4x4.TRS(position, rotation, Vector3.one);
var halfHeight = height * 0.5f;
var cylinderHalfHeight = halfHeight - radius;
var top = Vector3.up * cylinderHalfHeight;
var bottom = Vector3.down * cylinderHalfHeight;
// Rings
Handles.DrawWireDisc(top, Vector3.up, radius);
Handles.DrawWireDisc(bottom, Vector3.up, radius);
// Side lines
Handles.DrawLine(bottom + Vector3.forward * radius, top + Vector3.forward * radius);
Handles.DrawLine(bottom - Vector3.forward * radius, top - Vector3.forward * radius);
Handles.DrawLine(bottom + Vector3.right * radius, top + Vector3.right * radius);
Handles.DrawLine(bottom - Vector3.right * radius, top - Vector3.right * radius);
// Top hemisphere
Handles.DrawWireArc(top, Vector3.right, Vector3.forward * radius, 180f, radius);
Handles.DrawWireArc(top, Vector3.forward, Vector3.right * radius, -180f, radius);
// Bottom hemisphere
Handles.DrawWireArc(bottom, Vector3.right, -Vector3.forward * radius, 180f, radius);
Handles.DrawWireArc(bottom, Vector3.forward, Vector3.right * radius, 180f, radius);
Handles.color = oldColor;
Handles.matrix = oldMatrix;
}
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: a2931061159a423c8b4f108965f758a2
timeCreated: 1781351001

View File

@ -1,113 +1,50 @@
using System;
using System.Collections.Generic;
using Intrepid.Utilities;
using Sirenix.OdinInspector;
using UnityEditor;
using UnityEngine;
using UnityEngine.ProBuilder;
using UnityEngine.ProBuilder.Shapes;
namespace Intrepid.Gameplay.Prototyping
{
[ExecuteAlways]
public class ContactCubeModelPrototype : MonoBehaviour
public class ContactCubeModelPrototype : ContactModelPrototype
{
[GroupConfigurations, SerializeField, Min(1)] private int sizeX = 1;
[GroupConfigurations, SerializeField, Min(1)] private int sizeY = 1;
[GroupConfigurations, SerializeField, Min(1)] private int sizeZ = 1;
[GroupConfigurations, SerializeField, Range(0f, 1f)] private float offset = 1f;
[GroupInjections, SerializeField] private Transform model;
[GroupInjections, SerializeField] private ProBuilderMesh proBuilderMesh;
[GroupInjections, SerializeField] private BoxCollider boxCollider;
private int lastSizeX = -1;
private int lastSizeY = -1;
private int lastSizeZ = -1;
private float lastOffset = -1f;
public int SizeX
[GroupConfigurations, SerializeField, ReadOnly] private int sizeX = 1;
[GroupConfigurations, SerializeField, ReadOnly] private int sizeY = 1;
[GroupConfigurations, SerializeField, ReadOnly] private int sizeZ = 1;
[GroupConfigurations, SerializeField, ReadOnly] private float offset = 1f;
[GroupDebug, SerializeField, Min(1)] private int x = 1;
[GroupDebug, SerializeField, Min(1)] private int y = 1;
[GroupDebug, SerializeField, Min(1)] private int z = 1;
[GroupDebug, SerializeField, Range(0f, 1f)] private float contact_offset = 1f;
protected override void DebugResize()
{
get => sizeX;
set => sizeX = Mathf.Max(1, value);
sizeX = Mathf.Max(1, x);
sizeY = Mathf.Max(1, y);
sizeZ = Mathf.Max(1, z);
offset = Mathf.Clamp01(contact_offset);
}
public int SizeY
protected override void Generate()
{
get => sizeY;
set => sizeY = Mathf.Max(1, value);
}
public int SizeZ
{
get => sizeZ;
set => sizeZ = Mathf.Max(1, value);
}
public BoxCollider BoxCollider => boxCollider;
[GroupDebug, Button(ButtonSizes.Medium)]
private void Resize()
{
if (lastSizeX == sizeX &&
lastSizeY == sizeY &&
lastSizeZ == sizeZ &&
Mathf.Approximately(lastOffset, offset))
{
return;
}
var newSize = new Vector3(sizeX, sizeY, sizeZ);
new Cube().RebuildMesh(proBuilderMesh, newSize, Quaternion.identity);
proBuilderMesh.ToMesh();
proBuilderMesh.Refresh();
boxCollider.size = new Vector3(
sizeX + offset,
sizeY,
sizeZ + offset
);
boxCollider.center = Vector3.zero;
model.localPosition = new Vector3(0f, sizeY / 2f, 0f);
lastSizeX = sizeX;
lastSizeY = sizeY;
lastSizeZ = sizeZ;
lastOffset = offset;
}
private void OnValidate()
{
sizeX = Mathf.Max(1, sizeX);
sizeY = Mathf.Max(1, sizeY);
sizeZ = Mathf.Max(1, sizeZ);
offset = Mathf.Clamp01(offset);
#if UNITY_EDITOR
EditorApplication.delayCall += () =>
{
if (this == null)
return;
if (PrefabUtility.IsPartOfPrefabAsset(gameObject))
return;
Resize();
};
#endif
}
private void Awake()
{
Resize();
if (proBuilderMesh.IsNull()) return;
if (proBuilderMesh.gameObject.activeSelf)
{
proBuilderMesh.gameObject.SetActive(GonConstants.Prototyping.DebugPrototyping);
}
var vertices = new List<Vector3>();
var triangles = new List<int>();
var uvs = new List<Vector2>();
MeshUtils.AddCubeFaces(vertices, triangles, uvs,
sizeX, sizeY, sizeZ,
sizeX * 0.5f, sizeY * 0.5f, sizeZ * 0.5f);
PrototypeModel.BuildMesh(new MeshData(
vertices.ToArray(),
triangles.ToArray(),
uvs.ToArray()));
PrototypeModel.BoxCollider.size = new Vector3(sizeX + offset, sizeY, sizeZ + offset);
PrototypeModel.BoxCollider.center = Vector3.zero;
PrototypeModel.transform.localPosition = new Vector3(0f, sizeY / 2f, 0f);
}
}
}

View File

@ -0,0 +1,6 @@
namespace Intrepid.Gameplay.Prototyping
{
public abstract class ContactModelPrototype : ModelPrototype
{
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 20bae3ba7e8b4e638063241a71e626c7
timeCreated: 1781346867

View File

@ -0,0 +1,6 @@
namespace Intrepid.Gameplay.Prototyping
{
public abstract class GroundModelPrototype : ModelPrototype
{
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: d3ae9eabf87c400f908841619288eda9
timeCreated: 1781344134

View File

@ -3,64 +3,35 @@ using System.Collections.Generic;
using Intrepid.Utilities;
using Sirenix.OdinInspector;
using UnityEngine;
using UnityEngine.ProBuilder;
#if UNITY_EDITOR
using UnityEditor;
#endif
namespace Intrepid.Gameplay.Prototyping
{
[ExecuteAlways]
public class GroundRampModelPrototype : MonoBehaviour
public class GroundRampModelPrototype : GroundModelPrototype
{
[GroupConfigurations, SerializeField, Min(1)]
private int sizeX = 1;
[GroupConfigurations, SerializeField, ReadOnly] private int sizeX = 1;
[GroupConfigurations, SerializeField, ReadOnly] private int sizeZ = 1;
[GroupConfigurations, SerializeField, Min(1)]
private int sizeZ = 1;
[GroupDebug, SerializeField, Min(1)] private int x = 1;
[GroupDebug, SerializeField, Min(1)] private int z = 1;
[GroupInjections, SerializeField] private Transform model;
[GroupInjections, SerializeField] private ProBuilderMesh proBuilderMesh;
[GroupInjections, SerializeField] private BoxCollider boxCollider;
private int lastSizeX = -1;
private int lastSizeZ = -1;
public int SizeX
protected override void DebugResize()
{
get => sizeX;
set => sizeX = Mathf.Max(1, value);
sizeX = Mathf.Max(1, x);
sizeZ = Mathf.Max(1, z);
}
public int SizeZ
protected override void Generate()
{
get => sizeZ;
set => sizeZ = Mathf.Max(1, value);
PrototypeModel.BuildMesh(BuildRampMeshData(new Vector3(sizeX, sizeZ * 0.5f, sizeZ)));
PrototypeModel.BoxCollider.transform.localEulerAngles = new Vector3(-26.5f, 0f, 0f);
PrototypeModel.BoxCollider.center = new Vector3(0f, -0.02625f, 0f);
PrototypeModel.BoxCollider.size = new Vector3(sizeX, 0.05f, sizeZ * 2.236125f * 0.5f);
PrototypeModel.transform.localPosition = new Vector3(0f, sizeZ * .25f, 0f);
}
public BoxCollider BoxCollider => boxCollider;
[GroupDebug, Button(ButtonSizes.Medium)]
private void Resize()
{
if (lastSizeX == sizeX && lastSizeZ == sizeZ)
return;
var newSize = new Vector3(sizeX, sizeZ * .5f, sizeZ);
RebuildRamp(proBuilderMesh, newSize);
boxCollider.transform.localEulerAngles = new Vector3(-26.5f, 0f, 0f);
boxCollider.center = new Vector3(0f, -0.02625f, 0f);
boxCollider.size = new Vector3(sizeX, 0.05f, sizeZ * 2.236125f * 0.5f);
model.localPosition = new Vector3(0f, sizeZ * .25f, 0f);
lastSizeX = sizeX;
lastSizeZ = sizeZ;
}
private static void RebuildRamp(ProBuilderMesh mesh, Vector3 size)
private static MeshData BuildRampMeshData(Vector3 size)
{
var halfX = size.x * 0.5f;
var halfY = size.y * 0.5f;
@ -69,145 +40,62 @@ namespace Intrepid.Gameplay.Prototyping
var bottomY = -halfY;
var topY = halfY;
var slopeLength = Mathf.Sqrt(size.z * size.z + size.y * size.y);
var countX = Mathf.Max(1, Mathf.RoundToInt(size.x));
var countZ = Mathf.Max(1, Mathf.RoundToInt(size.z));
var positions = new List<Vector3>();
var faces = new List<Face>();
var vertices = new List<Vector3>();
var triangles = new List<int>();
var uvs = new List<Vector2>();
var frontLeftBottom = new Vector3(-halfX, bottomY, -halfZ);
var frontRightBottom = new Vector3( halfX, bottomY, -halfZ);
var backLeftBottom = new Vector3(-halfX, bottomY, halfZ);
var backRightBottom = new Vector3( halfX, bottomY, halfZ);
var backLeftTop = new Vector3(-halfX, topY, halfZ);
var backRightTop = new Vector3( halfX, topY, halfZ);
// Bottom face - normal para baixo
AddQuad(
frontLeftBottom,
frontRightBottom,
backRightBottom,
backLeftBottom,
new Vector2(0f, 0f),
new Vector2(size.x, 0f),
new Vector2(size.x, size.z),
new Vector2(0f, size.z)
var rampStep = new Vector3(
0f,
size.y / countZ,
size.z / countZ
);
// Inclined ramp surface - normal para fora/cima
AddQuad(
frontLeftBottom,
backLeftTop,
backRightTop,
frontRightBottom,
new Vector2(0f, 0f),
new Vector2(0f, slopeLength),
new Vector2(size.x, slopeLength),
new Vector2(size.x, 0f)
// Ramp surface
MeshUtils.AddGridFace(
vertices,
triangles,
uvs,
origin: new Vector3(halfX, bottomY, -halfZ),
axisU: Vector3.left,
axisV: rampStep,
countU: countX,
countV: countZ
);
// Back vertical face - normal para +Z
AddQuad(
backLeftBottom,
backRightBottom,
backRightTop,
backLeftTop,
new Vector2(0f, 0f),
new Vector2(size.x, 0f),
new Vector2(size.x, size.y),
new Vector2(0f, size.y)
);
// Left triangular face - normal para -X
AddTriangle(
frontLeftBottom,
backLeftBottom,
backLeftTop,
// Left
MeshUtils.AddTriangle(
vertices,
triangles,
uvs,
new Vector3(-halfX, bottomY, -halfZ),
new Vector3(-halfX, bottomY, halfZ),
new Vector3(-halfX, topY, halfZ),
new Vector2(0f, 0f),
new Vector2(size.z, 0f),
new Vector2(size.z, size.y)
);
// Right triangular face - normal para +X
AddTriangle(
frontRightBottom,
backRightTop,
backRightBottom,
// Right
MeshUtils.AddTriangle(
vertices,
triangles,
uvs,
new Vector3(halfX, bottomY, -halfZ),
new Vector3(halfX, topY, halfZ),
new Vector3(halfX, bottomY, halfZ),
new Vector2(0f, 0f),
new Vector2(size.z, size.y),
new Vector2(size.z, 0f)
);
mesh.RebuildWithPositionsAndFaces(positions, faces);
mesh.ToMesh();
var unityMesh = mesh.GetComponent<MeshFilter>().sharedMesh;
unityMesh.uv = uvs.ToArray();
unityMesh.RecalculateNormals();
unityMesh.RecalculateBounds();
mesh.Refresh();
return;
void AddQuad(
Vector3 a, Vector3 b, Vector3 c, Vector3 d,
Vector2 uvA, Vector2 uvB, Vector2 uvC, Vector2 uvD
)
{
AddTriangle(a, b, c, uvA, uvB, uvC);
AddTriangle(a, c, d, uvA, uvC, uvD);
}
void AddTriangle(
Vector3 a, Vector3 b, Vector3 c,
Vector2 uvA, Vector2 uvB, Vector2 uvC
)
{
var start = positions.Count;
positions.Add(a);
positions.Add(b);
positions.Add(c);
uvs.Add(uvA);
uvs.Add(uvB);
uvs.Add(uvC);
faces.Add(new Face(new[] { start, start + 1, start + 2 }));
}
}
private void OnValidate()
{
sizeX = Mathf.Max(1, sizeX);
sizeZ = Mathf.Max(1, sizeZ);
#if UNITY_EDITOR
EditorApplication.delayCall += () =>
{
if (this == null)
return;
if (PrefabUtility.IsPartOfPrefabAsset(gameObject))
return;
Resize();
};
#endif
}
private void Awake()
{
Resize();
if (proBuilderMesh.IsNull()) return;
if (proBuilderMesh.gameObject.activeSelf)
{
proBuilderMesh.gameObject.SetActive(GonConstants.Prototyping.DebugPrototyping);
}
return new MeshData(
vertices.ToArray(),
triangles.ToArray(),
uvs.ToArray()
);
}
}
}

View File

@ -1,90 +1,47 @@
using System;
using System.Collections.Generic;
using Intrepid.Utilities;
using Sirenix.OdinInspector;
using UnityEngine;
using UnityEngine.ProBuilder;
using UnityEngine.ProBuilder.Shapes;
#if UNITY_EDITOR
using UnityEditor;
#endif
namespace Intrepid.Gameplay.Prototyping
{
[ExecuteAlways]
public class GroundSlabModelPrototype : MonoBehaviour
public class GroundSlabModelPrototype : GroundModelPrototype
{
[GroupConfigurations, SerializeField, Min(1)] private int sizeX = 1;
[GroupConfigurations, SerializeField, Min(1)] private int sizeZ = 1;
private const float Height = 0.5f;
[GroupInjections, SerializeField] private Transform model;
[GroupInjections, SerializeField] private ProBuilderMesh proBuilderMesh;
[GroupInjections, SerializeField] private BoxCollider boxCollider;
[GroupConfigurations, SerializeField, ReadOnly] private int sizeX = 1;
[GroupConfigurations, SerializeField, ReadOnly] private int sizeZ = 1;
private int lastSizeX = -1;
private int lastSizeZ = -1;
public int SizeX
[GroupDebug, SerializeField, Min(1)] private int x = 1;
[GroupDebug, SerializeField, Min(1)] private int z = 1;
protected override void DebugResize()
{
get => sizeX;
set => sizeX = Mathf.Max(1, value);
sizeX = Mathf.Max(1, x);
sizeZ = Mathf.Max(1, z);
}
public int SizeZ
protected override void Generate()
{
get => sizeZ;
set => sizeZ = Mathf.Max(1, value);
}
public BoxCollider BoxCollider => boxCollider;
[GroupDebug, Button(ButtonSizes.Medium)]
private void Resize()
{
if (lastSizeX == sizeX && lastSizeZ == sizeZ) return;
var newSize = new Vector3(sizeX, .5f, sizeZ);
new Cube().RebuildMesh(proBuilderMesh, newSize, Quaternion.identity);
proBuilderMesh.ToMesh();
proBuilderMesh.Refresh();
boxCollider.size = newSize;
boxCollider.center = Vector3.zero;
model.localPosition = new Vector3(0f, -.25f, 0f);
lastSizeX = sizeX;
lastSizeZ = sizeZ;
}
private void OnValidate()
{
sizeX = Mathf.Max(1, sizeX);
sizeZ = Mathf.Max(1, sizeZ);
#if UNITY_EDITOR
EditorApplication.delayCall += () =>
{
if (this == null)
return;
if (PrefabUtility.IsPartOfPrefabAsset(gameObject))
return;
Resize();
};
#endif
}
private void Awake()
{
Resize();
if (proBuilderMesh.IsNull()) return;
if (proBuilderMesh.gameObject.activeSelf)
{
proBuilderMesh.gameObject.SetActive(GonConstants.Prototyping.DebugPrototyping);
}
var vertices = new List<Vector3>();
var triangles = new List<int>();
var uvs = new List<Vector2>();
MeshUtils.AddCubeFaces(vertices, triangles, uvs,
sizeX, 1, sizeZ,
sizeX * 0.5f, Height * 0.5f, sizeZ * 0.5f,
true);
PrototypeModel.BuildMesh(new MeshData(
vertices.ToArray(),
triangles.ToArray(),
uvs.ToArray()
));
PrototypeModel.BoxCollider.size = new Vector3(sizeX, Height, sizeZ);
PrototypeModel.BoxCollider.center = Vector3.zero;
PrototypeModel.transform.localPosition = new Vector3(0f, -.25f, 0f);
}
}
}

View File

@ -0,0 +1,71 @@
using System.Collections.Generic;
using Intrepid.Core.Camera;
using Intrepid.Utilities;
using Sirenix.OdinInspector;
using UnityEngine;
namespace Intrepid.Gameplay.Prototyping
{
public class InteractableCommonModelPrototype : InteractableModelPrototype
{
[GroupInjections, SerializeField] private CameraProximityTrigger cameraProximityTrigger;
[GroupConfigurations, SerializeField, ReadOnly] private int sizeX = 1;
[GroupConfigurations, SerializeField, ReadOnly] private int sizeY = 1;
[GroupConfigurations, SerializeField, ReadOnly] private int sizeZ = 1;
[GroupConfigurations, SerializeField, ReadOnly] private float offset = 1f;
[GroupDebug, SerializeField] private bool hasProximityCamera = true;
[GroupDebug, SerializeField, Min(1)] private int radius = 1;
[GroupDebug, SerializeField, Min(1)] private int x = 1;
[GroupDebug, SerializeField, Min(1)] private int y = 1;
[GroupDebug, SerializeField, Min(1)] private int z = 1;
[GroupDebug, SerializeField, Range(0f, 1f)] private float contact_offset = 1f;
protected override void ConfigElements()
{
cameraProximityTrigger.Radius = radius;
cameraProximityTrigger.Collider.center = Vector3.zero;
}
protected override void DebugResize()
{
sizeX = Mathf.Max(1, x);
sizeY = Mathf.Max(1, y);
sizeZ = Mathf.Max(1, z);
offset = Mathf.Clamp01(contact_offset);
}
protected override void SetupVisibility()
{
cameraProximityTrigger.enabled = hasProximityCamera;
}
protected override void Generate()
{
var vertices = new List<Vector3>();
var triangles = new List<int>();
var uvs = new List<Vector2>();
MeshUtils.AddCubeFaces(vertices, triangles, uvs,
sizeX, sizeY, sizeZ,
sizeX * 0.5f, sizeY * 0.5f, sizeZ * 0.5f);
PrototypeModel.BuildMesh(new MeshData(
vertices.ToArray(),
triangles.ToArray(),
uvs.ToArray()));
PrototypeModel.BoxCollider.size = new Vector3(sizeX + offset, sizeY, sizeZ + offset);
PrototypeModel.BoxCollider.center = Vector3.zero;
PrototypeModel.transform.localPosition = new Vector3(0f, sizeY / 2f, 0f);
}
#if UNITY_EDITOR
private void OnDrawGizmos()
{
Gizmos.color = Color.yellow;
Gizmos.DrawWireSphere(transform.position, radius);
}
#endif
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: cb37ac40fcc046539f4f959071d4146a
timeCreated: 1781349823

View File

@ -1,115 +0,0 @@
using System;
using Intrepid.Utilities;
using Sirenix.OdinInspector;
using UnityEngine;
using UnityEngine.ProBuilder;
using UnityEngine.ProBuilder.Shapes;
#if UNITY_EDITOR
using UnityEditor;
#endif
namespace Intrepid.Gameplay.Prototyping
{
[ExecuteAlways]
public class InteractableCubeModelPrototype : MonoBehaviour
{
[GroupConfigurations, SerializeField, Min(1)] private int sizeX = 1;
[GroupConfigurations, SerializeField, Min(1)] private int sizeY = 1;
[GroupConfigurations, SerializeField, Min(1)] private int sizeZ = 1;
[GroupConfigurations, SerializeField, Range(0f, 1f)] private float offset = 1f;
[GroupInjections, SerializeField] private Transform model;
[GroupInjections, SerializeField] private ProBuilderMesh proBuilderMesh;
[GroupInjections, SerializeField] private BoxCollider boxCollider;
private int lastSizeX = -1;
private int lastSizeY = -1;
private int lastSizeZ = -1;
private float lastOffset = -1f;
public int SizeX
{
get => sizeX;
set => sizeX = Mathf.Max(1, value);
}
public int SizeY
{
get => sizeY;
set => sizeY = Mathf.Max(1, value);
}
public int SizeZ
{
get => sizeZ;
set => sizeZ = Mathf.Max(1, value);
}
public BoxCollider BoxCollider => boxCollider;
[GroupDebug, Button(ButtonSizes.Medium)]
private void Resize()
{
if (lastSizeX == sizeX &&
lastSizeY == sizeY &&
lastSizeZ == sizeZ &&
Mathf.Approximately(lastOffset, offset))
{
return;
}
var newSize = new Vector3(sizeX, sizeY, sizeZ);
new Cube().RebuildMesh(proBuilderMesh, newSize, Quaternion.identity);
proBuilderMesh.ToMesh();
proBuilderMesh.Refresh();
boxCollider.size = new Vector3(
sizeX + offset,
sizeY,
sizeZ + offset
);
boxCollider.center = Vector3.zero;
model.localPosition = new Vector3(0f, sizeY / 2f, 0f);
lastSizeX = sizeX;
lastSizeY = sizeY;
lastSizeZ = sizeZ;
lastOffset = offset;
}
private void OnValidate()
{
sizeX = Mathf.Max(1, sizeX);
sizeY = Mathf.Max(1, sizeY);
sizeZ = Mathf.Max(1, sizeZ);
offset = Mathf.Clamp01(offset);
#if UNITY_EDITOR
EditorApplication.delayCall += () =>
{
if (this == null)
return;
if (PrefabUtility.IsPartOfPrefabAsset(gameObject))
return;
Resize();
};
#endif
}
private void Awake()
{
Resize();
if (proBuilderMesh.IsNull()) return;
if (proBuilderMesh.gameObject.activeSelf)
{
proBuilderMesh.gameObject.SetActive(GonConstants.Prototyping.DebugPrototyping);
}
}
}
}

View File

@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: 42aa640dc91d43339ddde4d64398a925
timeCreated: 1780991448

View File

@ -0,0 +1,6 @@
namespace Intrepid.Gameplay.Prototyping
{
public abstract class InteractableModelPrototype : ModelPrototype
{
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: be55d8b1af79488baa8fad9990f7c4c2
timeCreated: 1781349533

View File

@ -0,0 +1,128 @@
using System.Collections.Generic;
using UnityEngine;
namespace Intrepid.Gameplay.Prototyping
{
public static class MeshUtils
{
public static void AddGridFace(
List<Vector3> vertices,
List<int> triangles,
List<Vector2> uvs,
Vector3 origin,
Vector3 axisU,
Vector3 axisV,
int countU,
int countV)
{
for (var y = 0; y < countV; y++)
{
for (var x = 0; x < countU; x++)
{
var index = vertices.Count;
var p00 = origin + axisU * x + axisV * y;
var p10 = origin + axisU * (x + 1) + axisV * y;
var p11 = origin + axisU * (x + 1) + axisV * (y + 1);
var p01 = origin + axisU * x + axisV * (y + 1);
vertices.Add(p00);
vertices.Add(p10);
vertices.Add(p11);
vertices.Add(p01);
triangles.Add(index + 0);
triangles.Add(index + 1);
triangles.Add(index + 2);
triangles.Add(index + 0);
triangles.Add(index + 2);
triangles.Add(index + 3);
uvs.Add(new Vector2(0, 0));
uvs.Add(new Vector2(1, 0));
uvs.Add(new Vector2(1, 1));
uvs.Add(new Vector2(0, 1));
}
}
}
public static void AddTriangle(
List<Vector3> vertices,
List<int> triangles,
List<Vector2> uvs,
Vector3 a,
Vector3 b,
Vector3 c,
Vector2 uvA,
Vector2 uvB,
Vector2 uvC)
{
var index = vertices.Count;
vertices.Add(a);
vertices.Add(b);
vertices.Add(c);
triangles.Add(index);
triangles.Add(index + 1);
triangles.Add(index + 2);
uvs.Add(uvA);
uvs.Add(uvB);
uvs.Add(uvC);
}
public static void AddCubeFaces(
List<Vector3> vertices,
List<int> triangles,
List<Vector2> uvs,
int sizeX,
int sizeY,
int sizeZ,
float halfX,
float halfY,
float halfZ,
bool halfLateral = false)
{
// Top
AddGridFace(vertices, triangles, uvs,
new Vector3(-halfX, halfY, halfZ),
Vector3.right,
Vector3.back,
sizeX,
sizeZ);
// Back
AddGridFace(vertices, triangles, uvs,
new Vector3(halfX, -halfY, -halfZ),
Vector3.left,
Vector3.up * (halfLateral ? 0.5f : 1.0f),
sizeX,
sizeY);
// // Front
// AddGridFace(vertices, triangles, uvs,
// new Vector3(-halfX, -halfY, halfZ),
// Vector3.right,
// Vector3.up * (halfLateral ? 0.5f : 1.0f),
// sizeX,
// sizeY);
// Right
AddGridFace(vertices, triangles, uvs,
new Vector3(halfX, -halfY, halfZ),
Vector3.back,
Vector3.up * (halfLateral ? 0.5f : 1.0f),
sizeZ,
sizeY);
// Left
AddGridFace(vertices, triangles, uvs,
new Vector3(-halfX, -halfY, -halfZ),
Vector3.forward,
Vector3.up * (halfLateral ? 0.5f : 1.0f),
sizeZ,
sizeY);
}
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 3f5605716eac4fcf8ed0bc28160c3e06
timeCreated: 1781346901

View File

@ -0,0 +1,64 @@
using System;
using Intrepid.Utilities;
using Sirenix.OdinInspector;
using UnityEngine;
namespace Intrepid.Gameplay.Prototyping
{
[ExecuteAlways]
public abstract class ModelPrototype : MonoBehaviour
{
[GroupDebug, SerializeField] private bool displayDebug = true;
[GroupInjections, SerializeField] private PrototypeModel prototypeModel;
protected PrototypeModel PrototypeModel => prototypeModel;
// protected virtual void OnEnable()
// {
// ConfigElements();
// if (PrototypeModel.IsNull()) return;
// Generate();
// PrototypeModel.DebugRenderer.enabled = displayDebug;
// SetupVisibility();
// PrototypeModel.SetupDebugVisibility();
// }
protected virtual void OnValidate()
{
ConfigElements();
if (PrototypeModel.IsNull()) return;
Generate();
PrototypeModel.DebugRenderer.enabled = displayDebug;
SetupVisibility();
PrototypeModel.SetupDebugVisibility();
}
private void Awake()
{
ConfigElements();
if (PrototypeModel.IsNull()) return;
PrototypeModel.DebugRenderer.enabled = displayDebug;
SetupVisibility();
PrototypeModel.SetupDebugVisibility();
}
[GroupDebug, Button(ButtonSizes.Medium, ButtonStyle.FoldoutButton)]
private void SetSize()
{
DebugResize();
if (PrototypeModel.IsNull()) return;
Generate();
}
protected virtual void ConfigElements()
{
}
protected virtual void SetupVisibility()
{
}
protected abstract void DebugResize();
protected abstract void Generate();
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 27184d19924a49a096ce4ad0e99eda04
timeCreated: 1781349606

View File

@ -0,0 +1,80 @@
using System;
using Intrepid.Utilities;
using UnityEngine;
namespace Intrepid.Gameplay.Prototyping
{
public struct MeshData
{
public Vector3[] Vertices { get; }
public int[] triangles { get; }
public Vector2[] UVs { get; }
public MeshData(Vector3[] vertices, int[] triangles, Vector2[] uVs)
{
Vertices = vertices;
this.triangles = triangles;
UVs = uVs;
}
}
public class PrototypeModel : MonoBehaviour
{
[GroupInjections, SerializeField] private MeshFilter debugMeshFilter;
[GroupInjections, SerializeField] private MeshRenderer debugRenderer;
[GroupInjections, SerializeField] private BoxCollider boxCollider;
public MeshFilter DebugMeshFilter => debugMeshFilter;
public MeshRenderer DebugRenderer => debugRenderer;
public BoxCollider BoxCollider => boxCollider;
private Mesh mesh;
public void SetupDebugVisibility()
{
if (DebugRenderer.IsNull()) return;
if (DebugRenderer.gameObject.activeSelf && DebugRenderer.enabled)
{
DebugRenderer.enabled = GonConstants.Prototyping.DebugPrototyping;
}
}
public void ForceBuildMesh()
{
if (mesh.IsNotNull()) ForceDestroyMesh();
mesh = new Mesh
{
name = "Procedural Debug Cube Instance"
};
DebugMeshFilter.mesh = mesh;
}
private void ForceDestroyMesh()
{
if (Application.isPlaying)
{
Destroy(mesh);
}
else
{
DestroyImmediate(mesh);
}
}
public void BuildMesh(MeshData meshData)
{
ForceBuildMesh();
mesh.Clear();
mesh.vertices = meshData.Vertices;
mesh.triangles = meshData.triangles;
mesh.uv = meshData.UVs;
mesh.RecalculateNormals();
mesh.RecalculateBounds();
}
private void OnDestroy()
{
ForceDestroyMesh();
}
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: f20bd3bb11c64d00a0429af5fe4bd33f
timeCreated: 1781281704