浏览代码

prefab conversion for test_ForceRegion_LocalSpaceForceOnRigidBodies

Signed-off-by: Fuzzy Carter <[email protected]>
Fuzzy Carter 3 年之前
父节点
当前提交
dffe20d50e

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

@@ -35,7 +35,7 @@ class TestAutomation(TestAutomationBase):
     @revert_physics_config
     @revert_physics_config
     def test_ForceRegion_LocalSpaceForceOnRigidBodies(self, request, workspace, editor, launcher_platform):
     def test_ForceRegion_LocalSpaceForceOnRigidBodies(self, request, workspace, editor, launcher_platform):
         from .tests.force_region import ForceRegion_LocalSpaceForceOnRigidBodies as test_module
         from .tests.force_region import ForceRegion_LocalSpaceForceOnRigidBodies 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
     @revert_physics_config
     @fm.file_override('physxsystemconfiguration.setreg','Material_DynamicFriction.setreg_override',
     @fm.file_override('physxsystemconfiguration.setreg','Material_DynamicFriction.setreg_override',

+ 352 - 0
AutomatedTesting/Levels/Physics/ForceRegion_LocalSpaceForceOnRigidBodies/ForceRegion_LocalSpaceForceOnRigidBodies.prefab

@@ -0,0 +1,352 @@
+{
+    "ContainerEntity": {
+        "Id": "ContainerEntity",
+        "Name": "ForceRegion_LocalSpaceForceOnRigidBodies",
+        "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_[267879596941]": {
+            "Id": "Entity_[267879596941]",
+            "Name": "DefaultLevelSetup",
+            "Components": {
+                "Component_[10017568850356726118]": {
+                    "$type": "EditorEntitySortComponent",
+                    "Id": 10017568850356726118
+                },
+                "Component_[13730791873699866292]": {
+                    "$type": "EditorVisibilityComponent",
+                    "Id": 13730791873699866292
+                },
+                "Component_[14036484285432839222]": {
+                    "$type": "EditorInspectorComponent",
+                    "Id": 14036484285432839222,
+                    "ComponentOrderEntryArray": [
+                        {
+                            "ComponentId": 9432950532896492451
+                        },
+                        {
+                            "ComponentId": 16094906495473882735,
+                            "SortIndex": 1
+                        }
+                    ]
+                },
+                "Component_[16158494941530673195]": {
+                    "$type": "EditorOnlyEntityComponent",
+                    "Id": 16158494941530673195
+                },
+                "Component_[17819059404707659501]": {
+                    "$type": "EditorDisabledCompositionComponent",
+                    "Id": 17819059404707659501
+                },
+                "Component_[2317367007807622931]": {
+                    "$type": "EditorLockComponent",
+                    "Id": 2317367007807622931
+                },
+                "Component_[2676812743453687109]": {
+                    "$type": "EditorPendingCompositionComponent",
+                    "Id": 2676812743453687109
+                },
+                "Component_[3047355939801335922]": {
+                    "$type": "EditorEntityIconComponent",
+                    "Id": 3047355939801335922
+                },
+                "Component_[3687396159953003426]": {
+                    "$type": "SelectionComponent",
+                    "Id": 3687396159953003426
+                },
+                "Component_[9432950532896492451]": {
+                    "$type": "{27F1E1A1-8D9D-4C3B-BD3A-AFB9762449C0} TransformComponent",
+                    "Id": 9432950532896492451,
+                    "Parent Entity": "ContainerEntity",
+                    "Transform Data": {
+                        "Translate": [
+                            64.0,
+                            64.0,
+                            100.0
+                        ]
+                    }
+                }
+            }
+        },
+        "Entity_[276469531533]": {
+            "Id": "Entity_[276469531533]",
+            "Name": "Box",
+            "Components": {
+                "Component_[15599287577513238550]": {
+                    "$type": "EditorColliderComponent",
+                    "Id": 15599287577513238550,
+                    "ColliderConfiguration": {
+                        "Trigger": true,
+                        "InSceneQueries": false,
+                        "MaterialSelection": {
+                            "MaterialIds": [
+                                {}
+                            ]
+                        }
+                    },
+                    "ShapeConfiguration": {
+                        "ShapeType": 1,
+                        "Box": {
+                            "Scale": [
+                                0.9999998807907104,
+                                1.0,
+                                0.9999998807907104
+                            ],
+                            "Configuration": [
+                                3.0,
+                                3.0,
+                                3.0
+                            ]
+                        },
+                        "PhysicsAsset": {
+                            "Configuration": {
+                                "Scale": [
+                                    0.9999998807907104,
+                                    1.0,
+                                    0.9999998807907104
+                                ]
+                            }
+                        }
+                    }
+                },
+                "Component_[16016673093272454214]": {
+                    "$type": "EditorBoxShapeComponent",
+                    "Id": 16016673093272454214,
+                    "GameView": true
+                },
+                "Component_[1977970121905824214]": {
+                    "$type": "EditorForceRegionComponent",
+                    "Id": 1977970121905824214,
+                    "Forces": [
+                        {
+                            "Type": 1,
+                            "ForceLocalSpace": {
+                                "Magnitude": 1000.0
+                            }
+                        }
+                    ]
+                },
+                "Component_[3228372766822292280]": {
+                    "$type": "SelectionComponent",
+                    "Id": 3228372766822292280
+                },
+                "Component_[3953010346260389577]": {
+                    "$type": "EditorLockComponent",
+                    "Id": 3953010346260389577
+                },
+                "Component_[399316287162595911]": {
+                    "$type": "EditorVisibilityComponent",
+                    "Id": 399316287162595911
+                },
+                "Component_[4428229502283830655]": {
+                    "$type": "EditorOnlyEntityComponent",
+                    "Id": 4428229502283830655
+                },
+                "Component_[4617581639844640229]": {
+                    "$type": "EditorPendingCompositionComponent",
+                    "Id": 4617581639844640229
+                },
+                "Component_[4777009146570219810]": {
+                    "$type": "EditorEntityIconComponent",
+                    "Id": 4777009146570219810
+                },
+                "Component_[5933256255355945925]": {
+                    "$type": "{27F1E1A1-8D9D-4C3B-BD3A-AFB9762449C0} TransformComponent",
+                    "Id": 5933256255355945925,
+                    "Parent Entity": "ContainerEntity",
+                    "Transform Data": {
+                        "Translate": [
+                            64.0,
+                            84.19999694824219,
+                            39.0
+                        ],
+                        "Rotate": [
+                            0.0,
+                            45.0,
+                            0.0
+                        ]
+                    }
+                },
+                "Component_[6191733921494185101]": {
+                    "$type": "EditorInspectorComponent",
+                    "Id": 6191733921494185101,
+                    "ComponentOrderEntryArray": [
+                        {
+                            "ComponentId": 5933256255355945925
+                        },
+                        {
+                            "ComponentId": 1977970121905824214,
+                            "SortIndex": 1
+                        },
+                        {
+                            "ComponentId": 15599287577513238550,
+                            "SortIndex": 2
+                        },
+                        {
+                            "ComponentId": 16016673093272454214,
+                            "SortIndex": 3
+                        }
+                    ]
+                },
+                "Component_[7081932506666522836]": {
+                    "$type": "EditorEntitySortComponent",
+                    "Id": 7081932506666522836
+                },
+                "Component_[7366933418626825157]": {
+                    "$type": "EditorDisabledCompositionComponent",
+                    "Id": 7366933418626825157
+                }
+            }
+        },
+        "Entity_[280764498829]": {
+            "Id": "Entity_[280764498829]",
+            "Name": "Sphere",
+            "Components": {
+                "Component_[11149431545761323025]": {
+                    "$type": "EditorRigidBodyComponent",
+                    "Id": 11149431545761323025,
+                    "Configuration": {
+                        "entityId": "",
+                        "Initial linear velocity": [
+                            0.0,
+                            0.0,
+                            -10.0
+                        ],
+                        "Gravity Enabled": false,
+                        "Compute Mass": false
+                    }
+                },
+                "Component_[1165009394770085978]": {
+                    "$type": "EditorVisibilityComponent",
+                    "Id": 1165009394770085978
+                },
+                "Component_[1205701560326312946]": {
+                    "$type": "EditorPendingCompositionComponent",
+                    "Id": 1205701560326312946
+                },
+                "Component_[13373888108507601576]": {
+                    "$type": "{27F1E1A1-8D9D-4C3B-BD3A-AFB9762449C0} TransformComponent",
+                    "Id": 13373888108507601576,
+                    "Parent Entity": "ContainerEntity",
+                    "Transform Data": {
+                        "Translate": [
+                            65.0,
+                            84.19999694824219,
+                            45.0
+                        ]
+                    }
+                },
+                "Component_[13374137142518600136]": {
+                    "$type": "SelectionComponent",
+                    "Id": 13374137142518600136
+                },
+                "Component_[14261030316739436718]": {
+                    "$type": "EditorEntitySortComponent",
+                    "Id": 14261030316739436718
+                },
+                "Component_[14876878040032651889]": {
+                    "$type": "EditorInspectorComponent",
+                    "Id": 14876878040032651889,
+                    "ComponentOrderEntryArray": [
+                        {
+                            "ComponentId": 13373888108507601576
+                        },
+                        {
+                            "ComponentId": 11149431545761323025,
+                            "SortIndex": 1
+                        },
+                        {
+                            "ComponentId": 434047199197617283,
+                            "SortIndex": 2
+                        },
+                        {
+                            "ComponentId": 9291187726075093611,
+                            "SortIndex": 3
+                        }
+                    ]
+                },
+                "Component_[434047199197617283]": {
+                    "$type": "EditorColliderComponent",
+                    "Id": 434047199197617283,
+                    "ColliderConfiguration": {
+                        "Position": [
+                            0.0,
+                            0.0,
+                            0.5
+                        ],
+                        "MaterialSelection": {
+                            "MaterialIds": [
+                                {}
+                            ]
+                        }
+                    },
+                    "ShapeConfiguration": {
+                        "ShapeType": 0
+                    }
+                },
+                "Component_[5974306128104948092]": {
+                    "$type": "EditorEntityIconComponent",
+                    "Id": 5974306128104948092
+                },
+                "Component_[865276138199515203]": {
+                    "$type": "EditorDisabledCompositionComponent",
+                    "Id": 865276138199515203
+                },
+                "Component_[938167219623386367]": {
+                    "$type": "EditorLockComponent",
+                    "Id": 938167219623386367
+                },
+                "Component_[9732684600809269427]": {
+                    "$type": "EditorOnlyEntityComponent",
+                    "Id": 9732684600809269427
+                }
+            }
+        }
+    }
+}