Skip to content

Commit

Permalink
Fix ball collision problem (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
imengyu committed Aug 2, 2024
1 parent b84650b commit 079192e
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 16 deletions.
8 changes: 6 additions & 2 deletions Assets/Game/GamePlay/Prefabs/Moduls/P_Ball_Paper.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4496237636056940438}
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: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!33 &1300828165197587028
MeshFilter:
Expand All @@ -60,6 +60,8 @@ MeshRenderer:
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RayTracingAccelStructBuildFlagsOverride: 0
m_RayTracingAccelStructBuildFlags: 1
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
Expand Down Expand Up @@ -109,11 +111,12 @@ MonoBehaviour:
m_StartFrozen: 0
m_Fixed: 0
m_ShiftMassCenter: {x: 0, y: 0, z: 0}
m_CustomDePhysicsFall: 0
m_DoNotAutoCreateAtAwake: 1
m_AutoMassCenter: 0
m_AutoControlActive: 1
m_EnableConstantForce: 1
m_Layer: 3
m_Layer: 16
m_SystemGroupName:
m_SubSystemId: 0
m_SubSystemDontCollideWith: 0
Expand All @@ -139,5 +142,6 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
IsPreviewMode: 0
IsDebugMode: 0
PhysicsObject: {fileID: 0}
PhysicsObjectCollIDName: PaperOnlyHit
6 changes: 4 additions & 2 deletions Assets/Game/GamePlay/Prefabs/Moduls/P_Ball_Stone.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1736762836638913147}
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: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!33 &4885395225710462828
MeshFilter:
Expand All @@ -60,6 +60,8 @@ MeshRenderer:
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RayTracingAccelStructBuildFlagsOverride: 0
m_RayTracingAccelStructBuildFlags: 1
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
Expand Down Expand Up @@ -114,7 +116,7 @@ MonoBehaviour:
m_AutoMassCenter: 0
m_AutoControlActive: 1
m_EnableConstantForce: 1
m_Layer: 3
m_Layer: 16
m_SystemGroupName:
m_SubSystemId: 0
m_SubSystemDontCollideWith: 0
Expand Down
8 changes: 6 additions & 2 deletions Assets/Game/GamePlay/Prefabs/Moduls/P_Ball_Wood.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3660684224596906938}
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: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!33 &7573661921481803437
MeshFilter:
Expand All @@ -60,6 +60,8 @@ MeshRenderer:
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RayTracingAccelStructBuildFlagsOverride: 0
m_RayTracingAccelStructBuildFlags: 1
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
Expand Down Expand Up @@ -109,11 +111,12 @@ MonoBehaviour:
m_StartFrozen: 0
m_Fixed: 0
m_ShiftMassCenter: {x: 0, y: 0, z: 0}
m_CustomDePhysicsFall: 0
m_DoNotAutoCreateAtAwake: 1
m_AutoMassCenter: 0
m_AutoControlActive: 1
m_EnableConstantForce: 1
m_Layer: 3
m_Layer: 16
m_SystemGroupName:
m_SubSystemId: 0
m_SubSystemDontCollideWith: 0
Expand All @@ -139,5 +142,6 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
IsPreviewMode: 0
IsDebugMode: 0
PhysicsObject: {fileID: 0}
PhysicsObjectCollIDName: WoodOnlyHit
8 changes: 6 additions & 2 deletions Assets/Game/GamePlay/Prefabs/Moduls/P_Box.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6519714479909359513}
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: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!33 &7804571611213770
MeshFilter:
Expand All @@ -60,6 +60,8 @@ MeshRenderer:
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RayTracingAccelStructBuildFlagsOverride: 0
m_RayTracingAccelStructBuildFlags: 1
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
Expand Down Expand Up @@ -109,11 +111,12 @@ MonoBehaviour:
m_StartFrozen: 0
m_Fixed: 0
m_ShiftMassCenter: {x: 0, y: 0, z: 0}
m_CustomDePhysicsFall: 0
m_DoNotAutoCreateAtAwake: 1
m_AutoMassCenter: 0
m_AutoControlActive: 1
m_EnableConstantForce: 1
m_Layer: 3
m_Layer: 16
m_SystemGroupName:
m_SubSystemId: 0
m_SubSystemDontCollideWith: 0
Expand All @@ -139,5 +142,6 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
IsPreviewMode: 0
IsDebugMode: 0
PhysicsObject: {fileID: 0}
PhysicsObjectCollIDName: WoodOnlyHit
21 changes: 16 additions & 5 deletions Assets/Game/GamePlay/Prefabs/Moduls/P_Modul_34.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1547696244558699939}
serializedVersion: 2
m_LocalRotation: {x: -0.0000010207295, y: 0.7071068, z: 0.7071068, w: 0.0000010207295}
m_LocalPosition: {x: 7.7, y: 2.32, z: -0.02}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 3742572976002767231}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: -90, y: 180, z: 0}
--- !u!33 &3370889170497664138
MeshFilter:
Expand All @@ -60,6 +60,8 @@ MeshRenderer:
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RayTracingAccelStructBuildFlagsOverride: 0
m_RayTracingAccelStructBuildFlags: 1
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
Expand Down Expand Up @@ -110,11 +112,12 @@ MonoBehaviour:
m_StartFrozen: 1
m_Fixed: 0
m_ShiftMassCenter: {x: 0, y: 0, z: 0}
m_CustomDePhysicsFall: 0
m_DoNotAutoCreateAtAwake: 1
m_AutoMassCenter: 0
m_AutoControlActive: 1
m_EnableConstantForce: 1
m_Layer: 3
m_Layer: 16
m_SystemGroupName:
m_SubSystemId: 0
m_SubSystemDontCollideWith: 0
Expand Down Expand Up @@ -172,6 +175,7 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4088031401384821701}
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}
Expand All @@ -181,7 +185,6 @@ Transform:
- {fileID: 1544983484691587417}
- {fileID: 3876340260299911004}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &8009247242252729102
MonoBehaviour:
Expand All @@ -196,6 +199,7 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
IsPreviewMode: 0
IsDebugMode: 0
P_Modul_34_Kiste: {fileID: 244039996087373597}
P_Modul_34_Schiebestein: {fileID: 4026384979101584906}
--- !u!1 &9175142106070903127
Expand Down Expand Up @@ -224,13 +228,13 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9175142106070903127}
serializedVersion: 2
m_LocalRotation: {x: -0.0000010207295, y: 0.7071068, z: 0.7071068, w: 0.0000010207295}
m_LocalPosition: {x: 7.69999, y: -2.456629, z: -0.020004539}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 3742572976002767231}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: -90, y: 180, z: 0}
--- !u!33 &64751018227865034
MeshFilter:
Expand All @@ -257,6 +261,8 @@ MeshRenderer:
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RayTracingAccelStructBuildFlagsOverride: 0
m_RayTracingAccelStructBuildFlags: 1
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
Expand Down Expand Up @@ -306,11 +312,12 @@ MonoBehaviour:
m_StartFrozen: 1
m_Fixed: 0
m_ShiftMassCenter: {x: 0, y: 0, z: 0}
m_CustomDePhysicsFall: 0
m_DoNotAutoCreateAtAwake: 1
m_AutoMassCenter: 0
m_AutoControlActive: 1
m_EnableConstantForce: 1
m_Layer: 3
m_Layer: 16
m_SystemGroupName:
m_SubSystemId: 0
m_SubSystemDontCollideWith: 0
Expand All @@ -328,6 +335,7 @@ PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 3742572976002767231}
m_Modifications:
- target: {fileID: 1068713305201475572, guid: 4f475f423afed2541a7d63c9bbb4d3bd, type: 3}
Expand Down Expand Up @@ -383,6 +391,9 @@ PrefabInstance:
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 4f475f423afed2541a7d63c9bbb4d3bd, type: 3}
--- !u!4 &3876340260299911004 stripped
Transform:
Expand Down
6 changes: 3 additions & 3 deletions Assets/Resources/BallancePhysicsLayerNames.asset
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ MonoBehaviour:
- FloorWoods
- FloorStopper
- ModulOnlyCollWithFloor
-
- ModulCollWithBallButNoPieces
-
-
-
Expand All @@ -55,8 +55,8 @@ MonoBehaviour:
- m_GroupFilter: 0101010101010100000000000000010000000000000000000000000000000000
- m_GroupFilter: 0101010101010100000000000000010000000000000000000000000000000000
- m_GroupFilter: 0001010101010101000000000000000000000000000000000000000000000000
- m_GroupFilter: 0000010101010101010100000000000001000000000000000000000000000000
- m_GroupFilter: 0000000101010101010101000000000001010000000000000000000000000000
- m_GroupFilter: 0000010101010101010100000000000000000000000000000000000000000000
- m_GroupFilter: 0000000101010101010101000000000000010000000000000000000000000000
- m_GroupFilter: 0000000001010101010101000000000101010100000000000000000000000000
- m_GroupFilter: 0000000000010101010101010000000101010101000000000000000000000000
- m_GroupFilter: 0000000000000101010101010100000101010101010000000000000000000000
Expand Down

0 comments on commit 079192e

Please sign in to comment.