PhysXMaterialManager.h 932 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. #include <AzFramework/Physics/Material/PhysicsMaterialManager.h>
  10. namespace PhysX
  11. {
  12. //! Material manager specialization for PhysX.
  13. class MaterialManager
  14. : public AZ::Interface<Physics::MaterialManager>::Registrar
  15. {
  16. public:
  17. AZ_RTTI(PhysX::MaterialManager, "{4E0CEA41-A289-44F8-B612-43AC7E2AEE06}", Physics::MaterialManager);
  18. MaterialManager() = default;
  19. protected:
  20. AZStd::shared_ptr<Physics::Material> CreateDefaultMaterialInternal() override;
  21. AZStd::shared_ptr<Physics::Material> CreateMaterialInternal(const Physics::MaterialId& id, const AZ::Data::Asset<Physics::MaterialAsset>& materialAsset) override;
  22. };
  23. } // namespace PhysX