You can set the gravity of the UStaticMeshComponent :
UStaticMeshComponent* SphereVisual = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("VisualRepresentation"));
SphereVisual->SetSimulatePhysics(true);
SphereVisual->SetEnableGravity(true);
You can set the gravity of the UStaticMeshComponent :
UStaticMeshComponent* SphereVisual = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("VisualRepresentation"));
SphereVisual->SetSimulatePhysics(true);
SphereVisual->SetEnableGravity(true);