From 5192de1d539d281fc7445995c525ca7a3e007539 Mon Sep 17 00:00:00 2001 From: kbmhansungb <56149613+kbmhansungb@users.noreply.github.com> Date: Wed, 27 Jul 2022 16:38:21 +0900 Subject: [PATCH] =?UTF-8?q?AdjustNewRelativeTransform=EC=97=90=20=EB=8C=80?= =?UTF-8?q?=ED=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #23 --- .../HorrorCore/Private/HorrorSphereMoveableComponent.cpp | 5 +++++ .../HorrorCore/Public/HorrorSphereMoveableComponent.h | 8 +------- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/HorrorCore/Source/HorrorCore/Private/HorrorSphereMoveableComponent.cpp b/HorrorCore/Source/HorrorCore/Private/HorrorSphereMoveableComponent.cpp index 0781304..49563d6 100644 --- a/HorrorCore/Source/HorrorCore/Private/HorrorSphereMoveableComponent.cpp +++ b/HorrorCore/Source/HorrorCore/Private/HorrorSphereMoveableComponent.cpp @@ -115,3 +115,8 @@ void UHorrorAxisRotationComponent::SetFirstIntersectionPoint(const FHitResult& H SphereRadius = (HitLocation.Location - GetComponentLocation()).Size(); } +FTransform UHorrorAxisRotationComponent::AdjustNewRelativeTransform(const FTransform& Transform) const +{ + return Transform; +} + diff --git a/HorrorCore/Source/HorrorCore/Public/HorrorSphereMoveableComponent.h b/HorrorCore/Source/HorrorCore/Public/HorrorSphereMoveableComponent.h index a331a9f..0eb6285 100644 --- a/HorrorCore/Source/HorrorCore/Public/HorrorSphereMoveableComponent.h +++ b/HorrorCore/Source/HorrorCore/Public/HorrorSphereMoveableComponent.h @@ -50,7 +50,7 @@ class HORRORCORE_API UHorrorAxisRotationComponent : public USceneComponent, virtual FTransform GetNewVirtualTransform(const FVector& IntersectionLocation) const override { return FTransform(); } virtual FTransform ClampNewRelativeTransform(const FTransform& Transform) const override { return FTransform(); } - virtual FTransform AdjustNewRelativeTransform(const FTransform& Transform) const override { return FTransform(); } + virtual FTransform AdjustNewRelativeTransform(const FTransform& Transform) const override; private: float SphereRadius; @@ -106,12 +106,6 @@ class HORRORCORE_API UHorrorAxisRotationComponent : public USceneComponent, // //return Transform; //} - //virtual FTransform AdjustTransform(const FTransform& Transform) const override - //{ - // return Transform; - //} - - private: FKey Key;