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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Adding PhysX support to plugin?

I am working to add PhysX support to a plugin for Unreal Engine 4.17. When I add the PhysX headers I need (namely PxConvexMeshDesc.h). I get the following compiler errors in PxMath.h and PxWindowsIntrinsic.h.

PxWindowsIntrinsics.h(63): error C2062: type 'float' unexpected

PxWindowsIntrinsics.h(63): error C2059: syntax error: 'constant'

PxWindowsIntrinsics.h(63): error C2059: syntax error: ')'

PxWindowsIntrinsics.h(64): error C2143: syntax error: missing ';' before '{'

PxWindowsIntrinsics.h(64): error C2447: '{': missing function header (old-style formal list?)

PxMath.h(320): error C2589: '(': illegal token on right side of '::'

PxMath.h(320): error C2059: syntax error: '::'

ERROR : UBT error : Failed to produce item: C:\Users\Dragonfire\Documents\Unreal Projects\LRMVehicle\Plugins\BMVehicle\Binaries\Win64\UE4Editor-BMVehicle.pdb

Any ideas on what I am doing wrong to include the headers?

Product Version: UE 4.17
Tags:
more ▼

asked May 07 '18 at 10:34 PM in C++ Programming

avatar image

cmarston74
296 6 7 10

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

1 answer: sort voted first

Look up how other plugins use PhysX, here you have one:

https://github.com/EpicGames/UnrealEngine/tree/8e4560b8c22b309e73ff0ce90377742c3dfe13cc/Engine/Plugins/Runtime/ImmediatePhysics

Remember to also check build script as you will need to add PhysX module depency

more ▼

answered May 08 '18 at 05:43 AM

avatar image

Shadowriver
36.6k 930 169 1111

avatar image cmarston74 May 09 '18 at 12:48 AM

The link goes to a 404. I logged in and it still went 404.

I added PhysX and APEX to the dependencies, first in public then also in private. It appears to be a namespace collision in one of the PhysX math header inline functions.

I will dig through the source code for ImmediatePhysics plugin and see what I can work out. Thank you for the lead on where to look. I hadn't even considered looking into their internal plugins.

(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