I want to call FVector::ToDirectionAndLength, which according to the definition takes an &FVector and a &float. Which I understand is saying these will be modified inside the function. The problem is I can’t figure out the syntax to call the function itself, assuming I have my FVector and float declared like this inside my cpp file:
FVector FVtoBeModified;
float fLength;
I’ve tried various ways of calling it, using FVector::ToDirblabla and FVector->ToDirblabla and even FVector.ToDirblablabla, passing in FVtoBeModified and fLength as arguments obvious but get various errors from intellisense. I’m obviously pretty new to c++ so I must be missing some kind of scope management to make this work.
Thanks for any insight!