1234567891011121314151617181920212223242526272829303132333435363738394041 |
- /*
- * Copyright (c) Contributors to the Open 3D Engine Project.
- * For complete copyright and license terms please see the LICENSE at the root of this distribution.
- *
- * SPDX-License-Identifier: Apache-2.0 OR MIT
- *
- */
- #pragma once
- #include <AzFramework/Entity/EntityDebugDisplayBus.h>
- #include <AzToolsFramework/ComponentModes/BoxViewportEdit.h>
- #include <AzToolsFramework/ComponentModes/CapsuleViewportEdit.h>
- #include <Editor/Source/ComponentModes/PhysXSubComponentModeBase.h>
- namespace PhysX
- {
- /// Sub component mode for modifying the height and radius on a capsule collider.
- class ColliderCapsuleMode
- : public PhysXSubComponentModeBase
- , private AzFramework::EntityDebugDisplayEventBus::Handler
- {
- public:
- AZ_CLASS_ALLOCATOR_DECL
- // PhysXSubComponentModeBase ...
- void Setup(const AZ::EntityComponentIdPair& idPair) override;
- void Refresh(const AZ::EntityComponentIdPair& idPair) override;
- void Teardown(const AZ::EntityComponentIdPair& idPair) override;
- void ResetValues(const AZ::EntityComponentIdPair& idPair) override;
- private:
- // AzFramework::EntityDebugDisplayEventBus ...
- void DisplayEntityViewport(
- const AzFramework::ViewportInfo& viewportInfo,
- AzFramework::DebugDisplayRequests& debugDisplay) override;
- AZ::EntityComponentIdPair m_entityComponentIdPair;
- AZStd::unique_ptr<AzToolsFramework::CapsuleViewportEdit> m_capsuleViewportEdit;
- };
- } //namespace PhysX
|