33 lines
1.4 KiB
C++
33 lines
1.4 KiB
C++
/*
|
|
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
|
|
* its licensors.
|
|
*
|
|
* For complete copyright and license terms please see the LICENSE at the root of this
|
|
* distribution (the "License"). All use of this software is governed by the License,
|
|
* or, if provided, by the license below or the license accompanying this file. Do not
|
|
* remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
*
|
|
*/
|
|
#pragma once
|
|
#include "CameraFramework/ICameraSubComponent.h"
|
|
|
|
namespace AZ
|
|
{
|
|
class Transform;
|
|
}
|
|
namespace Camera
|
|
{
|
|
//////////////////////////////////////////////////////////////////////////
|
|
/// This class is responsible for mutating the LookAt position based on the target's new transform
|
|
//////////////////////////////////////////////////////////////////////////
|
|
class ICameraLookAtBehavior
|
|
: public ICameraSubComponent
|
|
{
|
|
public:
|
|
AZ_RTTI(ICameraLookAtBehavior, "{B15B9078-4090-4661-84DB-D37E0DFA1D3A}", ICameraSubComponent);
|
|
virtual ~ICameraLookAtBehavior() = default;
|
|
/// Adjust the outLookAtTargetTransform based on the target's initial transform and the time that's passed since the last call
|
|
virtual void AdjustLookAtTarget(float deltaTime, const AZ::Transform& targetTransform, AZ::Transform& outLookAtTargetTransform) = 0;
|
|
};
|
|
} //namespace LYGame
|