mirror of
https://projects.caleb-brown.dev/UDRI-XRT/UDRIGEEKCup2024.git
synced 2025-01-22 07:08:51 -05:00
Merge branch 'development' into feature/RoomAlignment
This commit is contained in:
commit
3b43d9b159
File diff suppressed because it is too large
Load Diff
@ -4775,7 +4775,7 @@ PrefabInstance:
|
||||
- target: {fileID: 8649987843805268783, guid: 67b92308c184e4945a702caf44784747,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0.011796951
|
||||
value: 0.0062
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8649987843805268783, guid: 67b92308c184e4945a702caf44784747,
|
||||
type: 3}
|
||||
|
@ -11,7 +11,7 @@ GameObject:
|
||||
- component: {fileID: 3277065184914629628}
|
||||
- component: {fileID: 2691174032354108224}
|
||||
- component: {fileID: 6770967778482584083}
|
||||
m_Layer: 6
|
||||
m_Layer: 0
|
||||
m_Name: Control_Room
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
@ -50,7 +50,7 @@ MeshRenderer:
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 782634506160621956}
|
||||
m_Enabled: 0
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 1
|
||||
m_ReceiveShadows: 1
|
||||
m_DynamicOccludee: 1
|
||||
@ -63,24 +63,24 @@ MeshRenderer:
|
||||
m_RenderingLayerMask: 1
|
||||
m_RendererPriority: 0
|
||||
m_Materials:
|
||||
- {fileID: 3782537492510617720, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: -8678783539337122896, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: -1897068076869964313, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: 1817904841586580917, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: 1400299459531279933, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: 5769006626239210234, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: -4852876050859037171, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: 4871088224896908678, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: -472640028747157849, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: 3312464896659963331, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: -1931442285631450791, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: 6571694528262885598, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: 2306785539569755410, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: -6111753311978520593, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: 4314078867566056019, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: 8958458835243448021, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: -4033169851070158369, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: -8072554559249862221, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
|
@ -138,7 +138,7 @@ MeshRenderer:
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4908809923922535070}
|
||||
m_Enabled: 0
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 1
|
||||
m_ReceiveShadows: 1
|
||||
m_DynamicOccludee: 1
|
||||
@ -151,19 +151,19 @@ MeshRenderer:
|
||||
m_RenderingLayerMask: 1
|
||||
m_RendererPriority: 0
|
||||
m_Materials:
|
||||
- {fileID: 4262279356327169087, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: -1476036267000219877, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: 4330194371847207021, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: 4871088224896908678, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: -986714056514370855, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: -6111753311978520593, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: 4314078867566056019, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: 1621441309887403949, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: 725830131102301292, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: -6937023281896900525, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: -3935038264227054355, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: 999810707010055239, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: -8072554559249862221, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
|
@ -11,7 +11,7 @@ GameObject:
|
||||
- component: {fileID: 8622549130173790273}
|
||||
- component: {fileID: 1435961146019601622}
|
||||
- component: {fileID: 6864179191514092418}
|
||||
m_Layer: 6
|
||||
m_Layer: 0
|
||||
m_Name: Main_Room
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
@ -63,27 +63,27 @@ MeshRenderer:
|
||||
m_RenderingLayerMask: 1
|
||||
m_RendererPriority: 0
|
||||
m_Materials:
|
||||
- {fileID: -8678783539337122896, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: -5519532238635984052, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: 6951589847359152772, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: 1400299459531279933, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: 5769006626239210234, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: 4871088224896908678, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: -472640028747157849, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: 3312464896659963331, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: 5789191641659325971, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: 1753179848374011791, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: -1931442285631450791, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: 6571694528262885598, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: 5241665347299591453, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: 2306785539569755410, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: -6111753311978520593, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: -2410684081991112172, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: 8958458835243448021, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: -612021366180181654, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: -8020161474384093832, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: -8723399642204636786, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: -8072554559249862221, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
@ -166,21 +166,21 @@ MeshRenderer:
|
||||
m_RenderingLayerMask: 1
|
||||
m_RendererPriority: 0
|
||||
m_Materials:
|
||||
- {fileID: -8678783539337122896, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: -5519532238635984052, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: 6951589847359152772, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: 1400299459531279933, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: 5769006626239210234, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: -5482881581812828905, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: -7040501356501458794, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: 3312464896659963331, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: 6571694528262885598, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: 5241665347299591453, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: 2306785539569755410, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: -2410684081991112172, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: 8958458835243448021, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: -612021366180181654, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: -8020161474384093832, guid: b7fca572b45104109acc041b816d7aa6, type: 3}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
- {fileID: 2100000, guid: 0f43e801f3555471697e41f98d8bb45b, type: 2}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
|
@ -87,6 +87,75 @@ MonoBehaviour:
|
||||
m_Bits: 1
|
||||
tagsMask:
|
||||
- {fileID: 11400000, guid: 1f557d488f8464000b778362139a0045, type: 2}
|
||||
--- !u!1 &4492872520714464466
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 5490686123428067723}
|
||||
- component: {fileID: 7767726477105542182}
|
||||
- component: {fileID: 1127375846303195088}
|
||||
m_Layer: 7
|
||||
m_Name: BallForce
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &5490686123428067723
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4492872520714464466}
|
||||
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: 8649987843805268783}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!135 &7767726477105542182
|
||||
SphereCollider:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4492872520714464466}
|
||||
m_Material: {fileID: 0}
|
||||
m_IncludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_ExcludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_LayerOverridePriority: 0
|
||||
m_IsTrigger: 1
|
||||
m_ProvidesContacts: 0
|
||||
m_Enabled: 1
|
||||
serializedVersion: 3
|
||||
m_Radius: 2
|
||||
m_Center: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &1127375846303195088
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4492872520714464466}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: f7ac694396f0c4f9094eebbbd7c000d5, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
forceMultiplier: 1.5
|
||||
tagsMask:
|
||||
- {fileID: 11400000, guid: 1f557d488f8464000b778362139a0045, type: 2}
|
||||
--- !u!1 &6121683813469744371
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -120,6 +189,7 @@ Transform:
|
||||
- {fileID: 84093497478952920}
|
||||
- {fileID: 6595505223521729305}
|
||||
- {fileID: 7492627932365574004}
|
||||
- {fileID: 5490686123428067723}
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &6783148664893773472
|
||||
@ -241,7 +311,7 @@ Transform:
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 1.110223e-17, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 2, y: 2, z: 2}
|
||||
m_LocalScale: {x: 2.805009, y: 2.805009, z: 2.805009}
|
||||
m_ConstrainProportionsScale: 1
|
||||
m_Children: []
|
||||
m_Father: {fileID: 8649987843805268783}
|
||||
|
@ -527,9 +527,9 @@ PrefabInstance:
|
||||
propertyPath: m_Name
|
||||
value: Green_Room
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8147166029460412950, guid: 0c2d73280f95e463cb0a553c52a488a7,
|
||||
- target: {fileID: 4908809923922535070, guid: 0c2d73280f95e463cb0a553c52a488a7,
|
||||
type: 3}
|
||||
propertyPath: m_Enabled
|
||||
propertyPath: m_Layer
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8232610969819635902, guid: 0c2d73280f95e463cb0a553c52a488a7,
|
||||
|
34
Assets/Scripts/OnTriggerForce.cs
Normal file
34
Assets/Scripts/OnTriggerForce.cs
Normal file
@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityAtoms.BaseAtoms;
|
||||
using UnityAtoms.Tags;
|
||||
using UnityEngine;
|
||||
|
||||
namespace MAVRIC.GEEKCup
|
||||
{
|
||||
public class OnTriggerForce : MonoBehaviour
|
||||
{
|
||||
public float forceMultiplier = 1f;
|
||||
|
||||
public List<StringConstant> tagsMask = new ();
|
||||
|
||||
private void OnTriggerStay(Collider other)
|
||||
{
|
||||
if (!other.gameObject.HasAnyTag(tagsMask)) return;
|
||||
|
||||
var rb = other.attachedRigidbody;
|
||||
|
||||
if (rb == null) return;
|
||||
|
||||
// Calculate direction from object to transform
|
||||
Vector3 direction = transform.position - rb.position;
|
||||
|
||||
// Normalize the direction to get a unit vector
|
||||
direction.Normalize();
|
||||
|
||||
// Apply attractive force based on direction and attractForce
|
||||
rb.AddForce(direction * forceMultiplier);
|
||||
}
|
||||
}
|
||||
}
|
11
Assets/Scripts/OnTriggerForce.cs.meta
Normal file
11
Assets/Scripts/OnTriggerForce.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f7ac694396f0c4f9094eebbbd7c000d5
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
29
Assets/Shaders/Custom_PlaneOcclusion.mat
Normal file
29
Assets/Shaders/Custom_PlaneOcclusion.mat
Normal file
@ -0,0 +1,29 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 8
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: Custom_PlaneOcclusion
|
||||
m_Shader: {fileID: 4800000, guid: c61d797fe0ea0441b89a9718ccc96897, type: 3}
|
||||
m_Parent: {fileID: 0}
|
||||
m_ModifiedSerializedProperties: 0
|
||||
m_ValidKeywords: []
|
||||
m_InvalidKeywords: []
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap: {}
|
||||
disabledShaderPasses: []
|
||||
m_LockedProperties:
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs: []
|
||||
m_Ints: []
|
||||
m_Floats: []
|
||||
m_Colors: []
|
||||
m_BuildTextureStacks: []
|
8
Assets/Shaders/Custom_PlaneOcclusion.mat.meta
Normal file
8
Assets/Shaders/Custom_PlaneOcclusion.mat.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0f43e801f3555471697e41f98d8bb45b
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 2100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
42
Assets/Shaders/PlaneOcclusion.shader
Normal file
42
Assets/Shaders/PlaneOcclusion.shader
Normal file
@ -0,0 +1,42 @@
|
||||
Shader "Custom/PlaneOcclusion"
|
||||
{
|
||||
SubShader
|
||||
{
|
||||
Tags { "RenderType"="Opaque" "Queue" = "Geometry-1" "RenderPipeline" = "UniversalPipeline" }
|
||||
ZWrite On
|
||||
ZTest LEqual
|
||||
ColorMask 0
|
||||
|
||||
Pass
|
||||
{
|
||||
CGPROGRAM
|
||||
#pragma vertex vert
|
||||
#pragma fragment frag
|
||||
|
||||
#include "UnityCG.cginc"
|
||||
|
||||
struct appdata
|
||||
{
|
||||
float4 vertex : POSITION;
|
||||
};
|
||||
|
||||
struct v2f
|
||||
{
|
||||
float4 vertex : SV_POSITION;
|
||||
};
|
||||
|
||||
v2f vert (appdata v)
|
||||
{
|
||||
v2f o;
|
||||
o.vertex = UnityObjectToClipPos(v.vertex);
|
||||
return o;
|
||||
}
|
||||
|
||||
fixed4 frag (v2f i) : SV_Target
|
||||
{
|
||||
return fixed4(0.0, 0.0, 0.0, 0.0);
|
||||
}
|
||||
ENDCG
|
||||
}
|
||||
}
|
||||
}
|
9
Assets/Shaders/PlaneOcclusion.shader.meta
Normal file
9
Assets/Shaders/PlaneOcclusion.shader.meta
Normal file
@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c61d797fe0ea0441b89a9718ccc96897
|
||||
ShaderImporter:
|
||||
externalObjects: {}
|
||||
defaultTextures: []
|
||||
nonModifiableTextures: []
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -58,7 +58,7 @@ PlayerSettings:
|
||||
iosShowActivityIndicatorOnLoading: -1
|
||||
androidShowActivityIndicatorOnLoading: -1
|
||||
iosUseCustomAppBackgroundBehavior: 0
|
||||
allowedAutorotateToPortrait: 0
|
||||
allowedAutorotateToPortrait: 1
|
||||
allowedAutorotateToPortraitUpsideDown: 0
|
||||
allowedAutorotateToLandscapeRight: 1
|
||||
allowedAutorotateToLandscapeLeft: 1
|
||||
|
Loading…
Reference in New Issue
Block a user