I have a problem with doing tutorial "Battery Collector"

UE 4-27, VS2019
In this video : Tutorial BatteryCollector 05 - Extending the Pickup Class (4:56), To make a free fall item, I had to set simulate physics using pointer function GetMesh() and function SetSimulatePhysics() like this " GetMesh()->SetSimulatePhysics(true); ". However, the error was occured with this “GetMesh() is undefined”.
I did everything follow the comment below the tutorial video such as Adding #include “Components/UStaticMeshComponrnt.h”

But, I didn’t solve this problem yet. I would be appreciated If someone help to beginner.

1 Like