Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
16 lines
516 B
C++
16 lines
516 B
C++
#include "TacticaCameraPawn.h"
|
|
#include "Camera/CameraComponent.h"
|
|
|
|
ATacticaCameraPawn::ATacticaCameraPawn()
|
|
{
|
|
PrimaryActorTick.bCanEverTick = false;
|
|
|
|
Camera = CreateDefaultSubobject<UCameraComponent>(TEXT("Camera"));
|
|
SetRootComponent(Camera);
|
|
|
|
// 3x3グリッド(中心 (100,100))を斜め上から見下ろす位置。
|
|
// 配置したPawnのActor位置を変えれば調整できる
|
|
Camera->SetRelativeLocation(FVector(-250.0f, 100.0f, 450.0f));
|
|
Camera->SetRelativeRotation(FRotator(-60.0f, 0.0f, 0.0f));
|
|
}
|