Custom pawn movement component

You can set the gravity of the UStaticMeshComponent :



UStaticMeshComponent* SphereVisual = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("VisualRepresentation"));
SphereVisual->SetSimulatePhysics(true);
SphereVisual->SetEnableGravity(true);