How do you properly include the Vehicle Movement Component header files?

anonymous_user_d71a2fac
Tue, 04 Jul 2017 10:58:36 +0000
World Creation

Hello!

I’m currently working on setting up the base classes for the vehicle classes in my game but i have gotten a bit confused.
I want to use the UWheeledVehicleMovementComponent and the child class that is used for four wheel vehicles, i’m planning on placing the components in classes that inherit from APawns.

What has gotten me confused is how to properly include these files. I cannot seem to find the classes under “Vehicles/”, i only have TireTypes.h in that directory. But if i however just do #include "WheeledVehicleMovementComponent4W.h" and create the component normally it compiles for some reason. But the code has red underline and i cannot access the variables or functions of the created component, which leads me to believe that this is not the correct way of doing it. (I cannot see a preview of the variables/functions when using “->”, but it compiles?)

If i mouse over the class name i get “identifier “UWheeledVehicleMovementComponent4W” is undefined”.

I have tried adding “PhysX” and “APEX” to the Build.cs file, but nothing changed.

Could anyone explain how they are including the classes? Thanks!

6 posts - 1 participant