- Added button to PhysX Collider Component in PhysX Mesh's field to open FBX Settings.
- Added button Material Selection to open the physics material library in Asset Editor.
- Default Material in PhysX configuration is read only and consistent with the text in combo boxes.
- Material configuration field "Surface Type" renamed to "Name"
- Fixed bug in EditorColliderComponent where the material selection was not updated when changing the library.
- Fixed bug where the materials selection was not set to default when a physics material from the asset was not found in the library.
- Added attributes 'BrowseButtonEnabled' and 'BrowseButtonVisible' to PropertyAssetCtrl.
- Updated physx configuration setreg files of AutomatedTesting project.
//! Each Physics Scene uses this as a base and will override as needed.
//! Each Physics Scene uses this as a base and will override as needed.
CollisionConfigurationm_collisionConfig;
CollisionConfigurationm_collisionConfig;
Physics::MaterialConfiguration m_defaultMaterialConfiguration;//!< Default material parameters for the project.
Physics::DefaultMaterialConfiguration m_defaultMaterialConfiguration;//!< Default material parameters for the project.
AZ::Data::Asset<Physics::MaterialLibraryAsset>m_materialLibraryAsset=AZ::Data::AssetLoadBehavior::NoLoad;//!< Material Library exposed by the system component SystemBus API.
AZ::Data::Asset<Physics::MaterialLibraryAsset>m_materialLibraryAsset=AZ::Data::AssetLoadBehavior::NoLoad;//!< Material Library exposed by the system component SystemBus API.
//! Controls whether the Physics System will self register to the TickBus and call StartSimulation / FinishSimulation on each Scene.
//! Controls whether the Physics System will self register to the TickBus and call StartSimulation / FinishSimulation on each Scene.
->DataElement(MaterialConfiguration::s_configLineEdit,&MaterialConfiguration::m_surfaceType,"Surface type","Game surface type")// Uses ConfigStringLineEditCtrl in PhysX gem.
->DataElement(MaterialConfiguration::s_configLineEdit,&MaterialConfiguration::m_surfaceType,"Name","Name of the physics material")// Uses ConfigStringLineEditCtrl in PhysX gem.
->DataElement(AZ::Edit::UIHandlers::Default,&MaterialSelection::m_editContextMaterialLibrary,"Library","Physics material library from PhysX Configuration")
conststaticAZ::Crc32s_stringGroup;///< Edit context data attribute. Identifies a string group instance. String values in the same group are unique.
conststaticAZ::Crc32s_stringGroup;///< Edit context data attribute. Identifies a string group instance. String values in the same group are unique.
conststaticAZ::Crc32s_forbiddenStringSet;///< Edit context data attribute. A set of strings that are not acceptable as values to the data element. Can be AZStd::unordered_set<AZStd::string>, AZStd::set<AZStd::string>, AZStd::vector<AZStd::string>
conststaticAZ::Crc32s_forbiddenStringSet;///< Edit context data attribute. A set of strings that are not acceptable as values to the data element. Can be AZStd::unordered_set<AZStd::string>, AZStd::set<AZStd::string>, AZStd::vector<AZStd::string>
conststaticAZ::Crc32s_configLineEdit;///< Edit context data element handler. Creates custom line edit widget that allows string values to be unique in a group.
conststaticAZ::Crc32s_configLineEdit;///< Edit context data element handler. Creates custom line edit widget that allows string values to be unique in a group.
->DataElement(AZ::Edit::UIHandlers::Default,&ColliderConfiguration::m_materialSelection,"Physics Material","Select physics material library and which materials to use for the shape")
->DataElement(AZ::Edit::UIHandlers::Default,&ColliderConfiguration::m_materialSelection,"Physics Materials","Select which physics materials to use for each element of this shape")
"UpdateMaterialSelectionFromPhysicsAsset: Physics material '%s' not found in the material library. Mesh material '%s' will use the default physics material.",
"UpdateMaterialSelectionFromPhysicsAsset: Physics material '%s' not found in the material library. Mesh material '%s' will use the default physics material.",