You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
o3de/Gems/PhysX/Code/Editor/Source/ComponentModes/Joints/JointsSubComponentModeSnapP...

43 lines
1.2 KiB
C++

/*
* 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 <AzCore/Math/Vector3.h>
#include <AzCore/Memory/Memory.h>
#include <Editor/Source/ComponentModes/Joints/JointsSubComponentModeSnap.h>
namespace PhysX
{
class JointsSubComponentModeSnapPosition final
: public JointsSubComponentModeSnap
{
public:
AZ_CLASS_ALLOCATOR_DECL;
JointsSubComponentModeSnapPosition() = default;
// JointsSubComponentModeSnap ...
void Setup(const AZ::EntityComponentIdPair& idPair) override;
void ResetValues(const AZ::EntityComponentIdPair& idPair) override;
protected:
// JointsSubComponentModeSnap ...
void DisplaySpecificSnapType(
const AzFramework::ViewportInfo& viewportInfo,
AzFramework::DebugDisplayRequests& debugDisplay,
const AZ::Vector3& jointPosition,
const AZ::Vector3& snapDirection,
float snapLength) override;
private:
AZ::Vector3 m_resetPosition;
AZ::EntityId m_resetLeadEntity;
};
}