PhysXJointTestComponent.h 895 B

123456789101112131415161718192021222324252627282930313233343536
  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/Component.h>
  10. #include <ImGuiBus.h>
  11. namespace TestScene
  12. {
  13. //! Component responsible for storing counters of apples gathered by Kraken.
  14. class ImGuiJointDemo
  15. : public AZ::Component
  16. , public ImGui::ImGuiUpdateListenerBus::Handler
  17. {
  18. public:
  19. AZ_COMPONENT(ImGuiJointDemo, "{12640e16-461e-450d-a1fa-88b6435fb8ab}", AZ::Component);
  20. ImGuiJointDemo() = default;
  21. ~ImGuiJointDemo() = default;
  22. void Activate() override;
  23. void Deactivate() override;
  24. static void Reflect(AZ::ReflectContext* context);
  25. private:
  26. void OnImGuiUpdate() override;
  27. float m_velocitySet {0};
  28. float m_forceSet {5000};
  29. };
  30. } // namespace AppleKraken