From ad29eb7ed0c8130671e8244916811a774c3e5a79 Mon Sep 17 00:00:00 2001 From: br0kenpixel Date: Tue, 5 May 2026 12:57:52 +0200 Subject: [PATCH] fix frying pan physics --- Assets/Prefabs/CustomPan.prefab | 34 +++++++++++++++++++++++++++------ Assets/Prefabs/Zombie1.prefab | 2 +- Assets/Scenes/MyFactory.unity | 6 +++--- 3 files changed, 32 insertions(+), 10 deletions(-) diff --git a/Assets/Prefabs/CustomPan.prefab b/Assets/Prefabs/CustomPan.prefab index 23e8317..1e998f5 100644 --- a/Assets/Prefabs/CustomPan.prefab +++ b/Assets/Prefabs/CustomPan.prefab @@ -14,6 +14,7 @@ GameObject: - component: {fileID: 9030969545143231616} - component: {fileID: 5861531341148561479} - component: {fileID: 5601109838860239658} + - component: {fileID: 5606270012513334918} m_Layer: 0 m_Name: CustomPan m_TagString: Untagged @@ -56,8 +57,8 @@ BoxCollider: m_ProvidesContacts: 0 m_Enabled: 1 serializedVersion: 3 - m_Size: {x: 0.20563412, y: 0.06337005, z: 0.34102273} - m_Center: {x: 0.013892174, y: 0.044198424, z: 0.0022665262} + m_Size: {x: 0.4051012, y: 0.06337005, z: 0.40191492} + m_Center: {x: 0.0015488714, y: 0.044198424, z: -0.002368316} --- !u!82 &2773283124664743149 AudioSource: m_ObjectHideFlags: 0 @@ -71,7 +72,7 @@ AudioSource: m_audioClip: {fileID: 0} m_Resource: {fileID: 8300000, guid: 5479f803d82e2514b8f2532f77f05434, type: 3} m_PlayOnAwake: 1 - m_Volume: 0.1 + m_Volume: 0.3 m_Pitch: 1 Loop: 0 Mute: 0 @@ -80,7 +81,7 @@ AudioSource: Priority: 90 DopplerLevel: 1 MinDistance: 0.08684671 - MaxDistance: 500 + MaxDistance: 35452.625 Pan2D: 0 rolloffMode: 0 BypassEffects: 0 @@ -193,7 +194,7 @@ Rigidbody: m_IsKinematic: 0 m_Interpolate: 0 m_Constraints: 0 - m_CollisionDetection: 0 + m_CollisionDetection: 1 --- !u!114 &5601109838860239658 MonoBehaviour: m_ObjectHideFlags: 0 @@ -270,7 +271,7 @@ MonoBehaviour: m_ParentInteractableObject: {fileID: 0} m_AttachTransform: {fileID: 0} m_SecondaryAttachTransform: {fileID: 0} - m_UseDynamicAttach: 0 + m_UseDynamicAttach: 1 m_MatchAttachPosition: 1 m_MatchAttachRotation: 1 m_SnapToColliderVolume: 1 @@ -323,6 +324,27 @@ MonoBehaviour: m_LimitAngularVelocity: 0 m_MaxLinearVelocityDelta: 10 m_MaxAngularVelocityDelta: 20 +--- !u!65 &5606270012513334918 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2132696421903654380} + 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: 0.42239434, y: 0.13624847, z: 0.13457343} + m_Center: {x: 0.41797093, y: 0.1430842, z: -0.0007674843} --- !u!1001 &4963480517219074361 PrefabInstance: m_ObjectHideFlags: 0 diff --git a/Assets/Prefabs/Zombie1.prefab b/Assets/Prefabs/Zombie1.prefab index d99d89b..024dfb5 100644 --- a/Assets/Prefabs/Zombie1.prefab +++ b/Assets/Prefabs/Zombie1.prefab @@ -1887,7 +1887,7 @@ Rigidbody: m_IsKinematic: 0 m_Interpolate: 0 m_Constraints: 10 - m_CollisionDetection: 0 + m_CollisionDetection: 1 --- !u!114 &-7112169132516269854 MonoBehaviour: m_ObjectHideFlags: 0 diff --git a/Assets/Scenes/MyFactory.unity b/Assets/Scenes/MyFactory.unity index 2c2b491..0e40f8e 100644 --- a/Assets/Scenes/MyFactory.unity +++ b/Assets/Scenes/MyFactory.unity @@ -23414,15 +23414,15 @@ PrefabInstance: m_Modifications: - target: {fileID: 1613908705749562768, guid: d703c83aba81781408d8ae9a2207efd8, type: 3} propertyPath: m_LocalPosition.x - value: -6.537669 + value: -13.16 objectReference: {fileID: 0} - target: {fileID: 1613908705749562768, guid: d703c83aba81781408d8ae9a2207efd8, type: 3} propertyPath: m_LocalPosition.y - value: 0.615 + value: 0.63 objectReference: {fileID: 0} - target: {fileID: 1613908705749562768, guid: d703c83aba81781408d8ae9a2207efd8, type: 3} propertyPath: m_LocalPosition.z - value: 3.664118 + value: 17.99 objectReference: {fileID: 0} - target: {fileID: 1613908705749562768, guid: d703c83aba81781408d8ae9a2207efd8, type: 3} propertyPath: m_LocalRotation.w