Browse Source

prefab conversion for shared level tests C18243584_Joints_HingeSoftLimitsConstrained and test_Joints_HingeSoftLimitsConstrained

Signed-off-by: Fuzzy Carter <[email protected]>
Fuzzy Carter 3 years ago
parent
commit
091da1f95b

+ 3 - 3
AutomatedTesting/Gem/PythonTests/Physics/TestSuite_Main_Optimized.py

@@ -307,6 +307,9 @@ class TestAutomationWithPrefabSystemEnabled(EditorTestSuite):
     class C13352089_RigidBodies_MaxAngularVelocity(EditorSharedTest):
         from .tests.rigid_body import RigidBody_MaxAngularVelocityWorks as test_module
 
+    class C18243584_Joints_HingeSoftLimitsConstrained(EditorSharedTest):
+        from .tests.joints import Joints_HingeSoftLimitsConstrained as test_module
+
 
 @pytest.mark.xfail(reason="Optimized tests are experimental, we will enable xfail and monitor them temporarily.")
 @pytest.mark.SUITE_main
@@ -327,9 +330,6 @@ class TestAutomation(EditorTestSuite):
         from .tests.script_canvas import ScriptCanvas_ShapeCast as test_module
 
 
-    class C18243584_Joints_HingeSoftLimitsConstrained(EditorSharedTest):
-        from .tests.joints import Joints_HingeSoftLimitsConstrained as test_module
-
 
 
     class C18243589_Joints_BallSoftLimitsConstrained(EditorSharedTest):

+ 1 - 1
AutomatedTesting/Gem/PythonTests/Physics/TestSuite_Periodic.py

@@ -361,7 +361,7 @@ class TestAutomation(TestAutomationBase):
     @revert_physics_config
     def test_Joints_HingeSoftLimitsConstrained(self, request, workspace, editor, launcher_platform):
         from .tests.joints import Joints_HingeSoftLimitsConstrained as test_module
-        self._run_test(request, workspace, editor, test_module, enable_prefab_system=False)
+        self._run_test(request, workspace, editor, test_module)
 
     @revert_physics_config
     def test_Joints_BallSoftLimitsConstrained(self, request, workspace, editor, launcher_platform):

+ 337 - 0
AutomatedTesting/Levels/Physics/Joints_HingeSoftLimitsConstrained/Joints_HingeSoftLimitsConstrained.prefab

@@ -0,0 +1,337 @@
+{
+    "ContainerEntity": {
+        "Id": "ContainerEntity",
+        "Name": "Joints_HingeSoftLimitsConstrained",
+        "Components": {
+            "Component_[10182366347512475253]": {
+                "$type": "EditorPrefabComponent",
+                "Id": 10182366347512475253
+            },
+            "Component_[12917798267488243668]": {
+                "$type": "EditorPendingCompositionComponent",
+                "Id": 12917798267488243668
+            },
+            "Component_[3261249813163778338]": {
+                "$type": "EditorOnlyEntityComponent",
+                "Id": 3261249813163778338
+            },
+            "Component_[3837204912784440039]": {
+                "$type": "EditorDisabledCompositionComponent",
+                "Id": 3837204912784440039
+            },
+            "Component_[4272963378099646759]": {
+                "$type": "{27F1E1A1-8D9D-4C3B-BD3A-AFB9762449C0} TransformComponent",
+                "Id": 4272963378099646759,
+                "Parent Entity": ""
+            },
+            "Component_[4848458548047175816]": {
+                "$type": "EditorVisibilityComponent",
+                "Id": 4848458548047175816
+            },
+            "Component_[5787060997243919943]": {
+                "$type": "EditorInspectorComponent",
+                "Id": 5787060997243919943
+            },
+            "Component_[7804170251266531779]": {
+                "$type": "EditorLockComponent",
+                "Id": 7804170251266531779
+            },
+            "Component_[7874177159288365422]": {
+                "$type": "EditorEntitySortComponent",
+                "Id": 7874177159288365422
+            },
+            "Component_[8018146290632383969]": {
+                "$type": "EditorEntityIconComponent",
+                "Id": 8018146290632383969
+            },
+            "Component_[8452360690590857075]": {
+                "$type": "SelectionComponent",
+                "Id": 8452360690590857075
+            }
+        }
+    },
+    "Entities": {
+        "Entity_[6899300052123]": {
+            "Id": "Entity_[6899300052123]",
+            "Name": "hinge",
+            "Components": {
+                "Component_[10580770764310395202]": {
+                    "$type": "{27F1E1A1-8D9D-4C3B-BD3A-AFB9762449C0} TransformComponent",
+                    "Id": 10580770764310395202,
+                    "Parent Entity": "ContainerEntity",
+                    "Transform Data": {
+                        "Translate": [
+                            509.9253234863281,
+                            539.9189453125,
+                            40.128623962402344
+                        ]
+                    }
+                },
+                "Component_[11225745331137294469]": {
+                    "$type": "EditorOnlyEntityComponent",
+                    "Id": 11225745331137294469
+                },
+                "Component_[11615284539783838886]": {
+                    "$type": "EditorPendingCompositionComponent",
+                    "Id": 11615284539783838886
+                },
+                "Component_[1197210883535406696]": {
+                    "$type": "EditorDisabledCompositionComponent",
+                    "Id": 1197210883535406696
+                },
+                "Component_[16530636879374642468]": {
+                    "$type": "EditorInspectorComponent",
+                    "Id": 16530636879374642468,
+                    "ComponentOrderEntryArray": [
+                        {
+                            "ComponentId": 10580770764310395202
+                        }
+                    ]
+                },
+                "Component_[17886841697341411190]": {
+                    "$type": "EditorVisibilityComponent",
+                    "Id": 17886841697341411190
+                },
+                "Component_[18122794734863139391]": {
+                    "$type": "SelectionComponent",
+                    "Id": 18122794734863139391
+                },
+                "Component_[363753562430157278]": {
+                    "$type": "EditorEntitySortComponent",
+                    "Id": 363753562430157278,
+                    "Child Entity Order": [
+                        "Entity_[6907889986715]",
+                        "Entity_[6903595019419]"
+                    ]
+                },
+                "Component_[4617659695662224045]": {
+                    "$type": "EditorLockComponent",
+                    "Id": 4617659695662224045
+                },
+                "Component_[9331876774136117633]": {
+                    "$type": "EditorEntityIconComponent",
+                    "Id": 9331876774136117633
+                }
+            }
+        },
+        "Entity_[6903595019419]": {
+            "Id": "Entity_[6903595019419]",
+            "Name": "lead",
+            "Components": {
+                "Component_[1018437074526318780]": {
+                    "$type": "EditorLockComponent",
+                    "Id": 1018437074526318780
+                },
+                "Component_[10615531016367326081]": {
+                    "$type": "EditorEntityIconComponent",
+                    "Id": 10615531016367326081
+                },
+                "Component_[13059765720378684624]": {
+                    "$type": "SelectionComponent",
+                    "Id": 13059765720378684624
+                },
+                "Component_[1634367188075677028]": {
+                    "$type": "EditorInspectorComponent",
+                    "Id": 1634367188075677028,
+                    "ComponentOrderEntryArray": [
+                        {
+                            "ComponentId": 3646675239138245811
+                        },
+                        {
+                            "ComponentId": 2075081285672957860,
+                            "SortIndex": 1
+                        },
+                        {
+                            "ComponentId": 6892250657965112702,
+                            "SortIndex": 2
+                        }
+                    ]
+                },
+                "Component_[1944935121293991203]": {
+                    "$type": "EditorDisabledCompositionComponent",
+                    "Id": 1944935121293991203
+                },
+                "Component_[2075081285672957860]": {
+                    "$type": "EditorRigidBodyComponent",
+                    "Id": 2075081285672957860,
+                    "Configuration": {
+                        "entityId": "",
+                        "Gravity Enabled": false,
+                        "Compute Mass": false,
+                        "Mass": 999.9999389648438,
+                        "Inertia tensor": {
+                            "roll": 0.0,
+                            "pitch": 0.0,
+                            "yaw": 0.0,
+                            "scale": 0.009999999776482582
+                        }
+                    }
+                },
+                "Component_[3646675239138245811]": {
+                    "$type": "{27F1E1A1-8D9D-4C3B-BD3A-AFB9762449C0} TransformComponent",
+                    "Id": 3646675239138245811,
+                    "Parent Entity": "Entity_[6899300052123]"
+                },
+                "Component_[4163374506345610128]": {
+                    "$type": "EditorPendingCompositionComponent",
+                    "Id": 4163374506345610128
+                },
+                "Component_[5763474647089604449]": {
+                    "$type": "EditorEntitySortComponent",
+                    "Id": 5763474647089604449
+                },
+                "Component_[6892250657965112702]": {
+                    "$type": "EditorColliderComponent",
+                    "Id": 6892250657965112702,
+                    "ColliderConfiguration": {
+                        "MaterialSelection": {
+                            "MaterialIds": [
+                                {}
+                            ]
+                        }
+                    },
+                    "ShapeConfiguration": {
+                        "ShapeType": 0
+                    }
+                },
+                "Component_[7137390832373571585]": {
+                    "$type": "EditorVisibilityComponent",
+                    "Id": 7137390832373571585
+                },
+                "Component_[7529203146878877657]": {
+                    "$type": "EditorOnlyEntityComponent",
+                    "Id": 7529203146878877657
+                }
+            }
+        },
+        "Entity_[6907889986715]": {
+            "Id": "Entity_[6907889986715]",
+            "Name": "follower",
+            "Components": {
+                "Component_[12260561689741907844]": {
+                    "$type": "EditorEntitySortComponent",
+                    "Id": 12260561689741907844
+                },
+                "Component_[12875287458270131036]": {
+                    "$type": "EditorVisibilityComponent",
+                    "Id": 12875287458270131036
+                },
+                "Component_[13157374766375412594]": {
+                    "$type": "EditorEntityIconComponent",
+                    "Id": 13157374766375412594
+                },
+                "Component_[1318931849772671001]": {
+                    "$type": "{27F1E1A1-8D9D-4C3B-BD3A-AFB9762449C0} TransformComponent",
+                    "Id": 1318931849772671001,
+                    "Parent Entity": "Entity_[6899300052123]",
+                    "Transform Data": {
+                        "Translate": [
+                            0.0,
+                            0.0,
+                            -5.0
+                        ]
+                    }
+                },
+                "Component_[13315761174451125636]": {
+                    "$type": "EditorOnlyEntityComponent",
+                    "Id": 13315761174451125636
+                },
+                "Component_[13605133142529850131]": {
+                    "$type": "EditorColliderComponent",
+                    "Id": 13605133142529850131,
+                    "ColliderConfiguration": {
+                        "MaterialSelection": {
+                            "MaterialIds": [
+                                {}
+                            ]
+                        }
+                    },
+                    "ShapeConfiguration": {
+                        "ShapeType": 0
+                    }
+                },
+                "Component_[14325676183421809297]": {
+                    "$type": "EditorPendingCompositionComponent",
+                    "Id": 14325676183421809297
+                },
+                "Component_[14955631859090998010]": {
+                    "$type": "EditorRigidBodyComponent",
+                    "Id": 14955631859090998010,
+                    "Configuration": {
+                        "entityId": "",
+                        "Initial linear velocity": [
+                            10.0,
+                            1.0,
+                            0.0
+                        ],
+                        "Compute Mass": false,
+                        "Inertia tensor": {
+                            "roll": 0.0,
+                            "pitch": 0.0,
+                            "yaw": 0.0,
+                            "scale": 10.0
+                        }
+                    }
+                },
+                "Component_[15481796164908343775]": {
+                    "$type": "EditorLockComponent",
+                    "Id": 15481796164908343775
+                },
+                "Component_[15762901430097068475]": {
+                    "$type": "EditorHingeJointComponent",
+                    "Id": 15762901430097068475,
+                    "Configuration": {
+                        "Local Position": [
+                            0.0,
+                            0.0,
+                            5.0
+                        ],
+                        "Local Rotation": [
+                            180.0,
+                            0.0,
+                            90.0
+                        ],
+                        "Parent Entity": "Entity_[6903595019419]",
+                        "Child Entity": "Entity_[6907889986715]"
+                    },
+                    "Angular Limit": {
+                        "Standard Limit Configuration": {
+                            "Is Soft Limit": true,
+                            "Damping": 2.0,
+                            "Stiffness": 10.0
+                        }
+                    }
+                },
+                "Component_[18380984894982461280]": {
+                    "$type": "EditorInspectorComponent",
+                    "Id": 18380984894982461280,
+                    "ComponentOrderEntryArray": [
+                        {
+                            "ComponentId": 1318931849772671001
+                        },
+                        {
+                            "ComponentId": 14955631859090998010,
+                            "SortIndex": 1
+                        },
+                        {
+                            "ComponentId": 13605133142529850131,
+                            "SortIndex": 2
+                        },
+                        {
+                            "ComponentId": 15762901430097068475,
+                            "SortIndex": 3
+                        }
+                    ]
+                },
+                "Component_[3272207836754226950]": {
+                    "$type": "SelectionComponent",
+                    "Id": 3272207836754226950
+                },
+                "Component_[6921077633735186771]": {
+                    "$type": "EditorDisabledCompositionComponent",
+                    "Id": 6921077633735186771
+                }
+            }
+        }
+    }
+}