1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- /*
- * 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 <AzCore/RTTI/RTTI.h>
- #include <AzCore/RTTI/TypeInfo.h>
- #include <AzCore/std/containers/vector.h>
- #include <EMotionFX/Source/EMotionFXConfig.h>
- #include <Feature.h>
- namespace AZ
- {
- class ReflectContext;
- }
- namespace EMotionFX::MotionMatching
- {
- class FrameDatabase;
- class EMFX_API FeaturePosition
- : public Feature
- {
- public:
- AZ_RTTI(FeaturePosition, "{3EAA6459-DB59-4EA1-B8B3-C933A83AA77D}", Feature)
- AZ_CLASS_ALLOCATOR_DECL
- FeaturePosition() = default;
- ~FeaturePosition() override = default;
- void ExtractFeatureValues(const ExtractFeatureContext& context) override;
- void FillQueryVector(QueryVector& queryVector, const QueryVectorContext& context) override;
- float CalculateFrameCost(size_t frameIndex, const FrameCostContext& context) const override;
- void DebugDraw(AzFramework::DebugDisplayRequests& debugDisplay,
- const Pose& currentPose,
- const FeatureMatrix& featureMatrix,
- const FeatureMatrixTransformer* featureTransformer,
- size_t frameIndex) override;
- static void Reflect(AZ::ReflectContext* context);
- size_t GetNumDimensions() const override;
- AZStd::string GetDimensionName(size_t index) const override;
- AZ::Vector3 GetFeatureData(const FeatureMatrix& featureMatrix, size_t frameIndex) const;
- };
- } // namespace EMotionFX::MotionMatching
|