VGT – UE 5 Release – migration
In AC_VGT_GravityComponent : please replace the first cast of in the begin play by « Cast to WheeldVehiclePawn »
![](https://wecomfrom.com/wp-content/uploads/2022/04/Capture-1024x403.png)
For UE5 – Early Access
The cast is different in early access (not the same as the one for UE5.0 release)
![](https://wecomfrom.com/wp-content/uploads/2022/03/1-1024x576.png)
![](https://wecomfrom.com/wp-content/uploads/2022/03/2-1024x576.png)
To solve extrem lag problem (do this ONLY if you have extrem lag)
If you are using VGT gravity generators you will need to activate Nanite on static meshs
![](https://wecomfrom.com/wp-content/uploads/2022/03/4-1024x576.png)
![](https://wecomfrom.com/wp-content/uploads/2022/03/5-1024x576.png)
![](https://wecomfrom.com/wp-content/uploads/2022/03/3-1024x576.png)