Add getter for player CameraComponent

This commit is contained in:
baz 2024-03-09 03:51:34 +00:00
parent fdfa37a346
commit a43ec2c068
2 changed files with 7 additions and 0 deletions

View File

@ -826,3 +826,8 @@ void APlayerCharacter::SetIsThrowing(bool bIsThrowing)
{
IsThrowing = bIsThrowing;
}
UCameraComponent* APlayerCharacter::GetCameraComponent()
{
return CameraComponent;
}

View File

@ -242,6 +242,8 @@ public:
UFUNCTION(BlueprintCallable)
void SetIsThrowing(bool bIsThrowing);
UCameraComponent* GetCameraComponent();
protected:
virtual void CalculateHits(TArray<FHitResult>* hits, FVector* dir) override;