Hey,
I have following problem:
I’ve created my PlayerController & PlayerCharacter and want to add some character movement now:
PlayerCharacterSetup
ConstructorHelpers::FObjectFinder<USkeletalMesh> character_model(TEXT("/Game/TBContent/Models/HeroTPP.HeroTPP"));
GetMesh()->SetSkeletalMesh(character_model.Object);
GetMesh()->SetSimulatePhysics(true);
GetMesh()->SetCollisionEnabled(ECollisionEnabled::QueryAndPhysics);
MoveForward:
FRotator Rotation = GetBaseAimRotation();
Rotation.Normalize();
FRotator YawRotation(0, Rotation.Yaw, 0);
const FVector Direction = FRotationMatrix(YawRotation).GetUnitAxis(EAxis::X);
AddMovementInput(Direction, 100);
SetActorRotation(YawRotation);
But when I move forward, only the camera is moving, the character is not.
can anyone help?