狐狸大招碰撞解决

This commit is contained in:
2025-10-19 03:33:01 +08:00
parent ddde270ad5
commit 1e04c04600
9 changed files with 25 additions and 38 deletions

View File

@ -16,7 +16,6 @@ ABusyPawnBase::ABusyPawnBase()
RootScene = CreateDefaultSubobject<USceneComponent>(TEXT("RootScene"));
SpineRoot = CreateDefaultSubobject<USceneComponent>(TEXT("SpineRoot"));
SphereComponent = CreateDefaultSubobject<USphereComponent>(TEXT("SphereComponent"));
SpineRenderComponent = CreateDefaultSubobject<USpineSkeletonRendererComponent>(TEXT("SpineRenderComponent"));
SpineAnimationComponent = CreateDefaultSubobject<USpineSkeletonAnimationComponent>(TEXT("SpineAnimationComponent"));
AbilitySystemComponent = CreateDefaultSubobject<UBusyAbilitySystemComponent>(TEXT("AbilitySystemComponent"));
@ -24,7 +23,6 @@ ABusyPawnBase::ABusyPawnBase()
RootComponent = RootScene;
SpineRoot->SetupAttachment(RootScene);
SphereComponent->SetupAttachment(SpineRoot);
SpineRenderComponent->SetupAttachment(SpineRoot);
SpineRoot->SetRelativeRotation(FRotator(0, 0, -90));

View File

@ -5,13 +5,11 @@
#include "BusyPawnBase.generated.h"
struct FBusyPawnBaseConfig;
class USphereComponent;
class USpineBoneFollowerComponent;
class USpineSkeletonRendererComponent;
class USpineSkeletonAnimationComponent;
class UBusyPawnMovementComponent;
DECLARE_DYNAMIC_DELEGATE_TwoParams(FGameplayTagAddOrRemoveDelegate, const FGameplayTag&, Tag, const int32, Value);
@ -81,12 +79,6 @@ protected:
UPROPERTY(EditDefaultsOnly)
TObjectPtr<USceneComponent> RootScene; //场景根组件
/*-----------------------------碰撞相关组件-----------------------------*/
UPROPERTY(EditDefaultsOnly)
TObjectPtr<USphereComponent> SphereComponent;
/*-------------------------------------------------------------------*/
/*----------------------------spine相关组件----------------------------*/
UPROPERTY(EditDefaultsOnly)
TObjectPtr<USceneComponent> SpineRoot;