RecastNavigationPhysXProviderConfig.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  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 <AzCore/Component/ComponentBus.h>
  10. #include <AzCore/RTTI/RTTI.h>
  11. #include <AzCore/Serialization/EditContext.h>
  12. #include <AzFramework/Physics/Collision/CollisionGroups.h>
  13. namespace RecastNavigation
  14. {
  15. //! Provides configuration for @RecastNavigationPhysXProviderComponent and @EditorRecastNavigationPhysXProviderComponent.
  16. class RecastNavigationPhysXProviderConfig final
  17. : public AZ::ComponentConfig
  18. {
  19. public:
  20. AZ_CLASS_ALLOCATOR(RecastNavigationPhysXProviderConfig, AZ::SystemAllocator)
  21. AZ_RTTI(RecastNavigationPhysXProviderConfig, "{310A3F15-6212-445E-A543-FB3BD6D47768}");
  22. static void Reflect(AZ::ReflectContext* context);
  23. //! Either use Editor PhysX world or game PhysX world.
  24. bool m_useEditorScene = false;
  25. //! Only colliders from the specified collision group will be considered.
  26. AzPhysics::CollisionGroups::Id m_collisionGroupId;
  27. };
  28. } // namespace RecastNavigation