x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Upgrading to PhysXVehicles plugin

Hi, Let's say I had a plugin upgrading the PhysX vehicles with some extra classes. Now with PhysX Vehicles as a plugin in 4.15, I have two questions:

  1. What is the best way to add more classes two the plugin, as I think a plugin loading a plugin is not the best behavior.

  2. How I should include the headers? In 4.14 I had, #include "Vehicles/WheeledVehicleMovementComponent.h"

It is this example a good way to call a plugin header or there is a better one? #include "../../../Plugins/Runtime/PhysXVehicles/Source/PhysXVehicles/Public/WheeledVehicleMovementComponent.h"

Thank you!!

EDIT: Added "PhysXVehicleLib" to my .cs file under, PublicDependencyModuleNames and PrivateDependencyModuleNames and it works now. But will be great to know if #include "../../../Plugins/Runtime/PhysXVehicles/Source/PhysXVehicles/Public/WheeledVehicleMovementComponent.h" is a good way to call the header.

Thanks again!

Product Version: UE 4.15 Preview
Tags:
more ▼

asked Feb 02 '17 at 04:18 AM in C++ Programming

avatar image

darorck
121 8 10 13

avatar image Salamanderrake Feb 08 '17 at 02:15 PM

You should probablly rename the title "Upgrading to PhysXVehicles plugin" as it sounds now, it sounds like you want the plugin updated, and not that your updating to the plugin.

avatar image darorck Feb 08 '17 at 02:17 PM

Thank you very much for the correction :)

avatar image Salamanderrake Feb 08 '17 at 03:30 PM

Also its Plugin not pluging

avatar image Salamanderrake Feb 08 '17 at 03:05 PM

Also it seems like something is broken in UnrealBuildTool.exe, as it points to the correct include search path, so you should be able to use just #include "WheeledVehicleMovementComponent.h" but when ubt is compiled it can't find those files even though the include search path is set.

avatar image darorck Feb 08 '17 at 03:10 PM

I got it working, just wanted to know about the best way to use it. You should add the library to your build.cs file:

 PublicDependencyModuleNames.AddRange(
             new string[]
             {
                 ...,
                 "PhysXVehicleLib"
             }
             );
             
         
         PrivateDependencyModuleNames.AddRange(
             new string[]
             {
                 ...,
                 "PhysXVehicleLib"    
             }
             );

avatar image Salamanderrake Feb 09 '17 at 06:16 PM

On a funny side note, had you created a new Advanced Vehicle project it would have showed you what you needed to add in the *.Build.cs file.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

In your projects ${ProjectNamd}.Build.cs change PhysXVehiclesLib to PhysXVehicles, and in your source/header files remove any reference to Vehicles/ in your inclusions. So

#include "Vehicles/WheeledVehicleMovementComponent.h"

now becomes

#include "WheeledVehicleMovementComponent.h"

UnrealBuildTools.exe points to the correct include search paths, but you need to point to the correct module name for it to linkage and passing include paths to the compiler.

more ▼

answered Feb 08 '17 at 03:26 PM

avatar image

Salamanderrake
158 6 10 22

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question