Hello there,
I am trying to set the source and target vector particle parameter of my beam particle but something is not working properly.
Here is my particle:
And here is my current code:
FVector SourceParam;
FRotator Rotation;
GetWorld()->GetFirstPlayerController()->GetPlayerViewPoint(OUT SourceParam, OUT Rotation);
FVector TargetParam = Location + Rotation.Vector() * 500.f;
ParticleSystemComponent->SetVectorParameter(FName(TEXT("BeamSource")), SourceParam);
ParticleSystemComponent->SetVectorParameter(FName(TEXT("BeamTarget")), TargetParam);
I am definitely doing something wrong, maybe using the wrong API for the ParticleSystemComponent, because I draw a debug line using that SourceParam and TargetParam and is totally different, any clues on this issue?
Thanks!