Zero initialization

Hi guys, why the code below isn’t giving me a zeroed out vector? Isn’t that standard C++ zero initialization syntax?



 FVector DesiredMovingDirection{}; 

That doesn’t look like a standard initialization. Check the FVector header file for the valid constructors…
FVector DesiredMovingDirection; FVector DesiredMovingDirection(FVector::ZeroVector);

Ok, I didn’t realized that zero initialization syntax doesn’t apply to objects of class type, thanks :slight_smile: