I am trying to create an effect where when a player jumps I shoot particles out the bottom of the characters foot.
SETUP
Character.h
UParticleSystemComponent* MultiJumpParticleSystem;
Character.cpp: (constructor)
MultiJumpParticleSystem = CreateDefaultSubobject<UParticleSystemComponent>(TEXT("MultiJumpParticleSystem"));
MultiJumpParticleSystem->bAutoActivate = true;
MultiJumpParticleSystem->SetRelativeScale3D(FVector(0.2f, 0.2f, 0.2f));
//MultiJumpParticleSystem->SetWorldRotation(FRotator(0, 90, 90));
MultiJumpParticleSystem->AttachTo(GetMesh(), FName("foot_r"), EAttachLocation::KeepRelativeOffset);
static ConstructorHelpers::FObjectFinder<UParticleSystem> ParticleAsset(TEXT("/Game/Sample_sharedassets/Models/Thrust.Thrust"));
if (ParticleAsset.Succeeded())
{
MultiJumpParticleSystem->SetTemplate(ParticleAsset.Object);
}
PROBLEM
The particle system always shoots the particles down the Y axis. I would like for the particles to shoot straight down. When I blueprinted this out I was able to change this by going into Cascade and changing Start Velocity to go down the Z access. I cant figure out how to do this in code though.