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"

need help with PhisXVehicleManager

There is no eDRIVENW case in

 FPhysXVehicleManager::RemoveVehicle( TWeakObjectPtr<UWheeledVehicleMovementComponent> Vehicle )
         switch( PVehicle->getVehicleType() )
         {
         case PxVehicleTypes::eDRIVE4W:
             ((PxVehicleDrive4W*)PVehicle)->free();
             break;
         case PxVehicleTypes::eDRIVETANK:
             ((PxVehicleDriveTank*)PVehicle)->free();
             break;
         case PxVehicleTypes::eNODRIVE:
             ((PxVehicleNoDrive*)PVehicle)->free();
             break;
         default:
             checkf( 0, TEXT("Unsupported vehicle type"));
             break;



it crashes when trying to delete PxVehicleDriveNW vehicle from scene. Is there any simple way to circumvent this issue?

Product Version: UE 4.8
Tags:
more ▼

asked Aug 04 '15 at 07:35 AM in C++ Programming

avatar image

Zedokus
33 6 7

avatar image Feuern_D Nov 25 '15 at 09:06 PM

I added the case for the eDRIVENW and it still crashes, don't know if you managed to fix it, I just ran into this problem last night. I'm trying to find where it gets the vehicle type and fix whatever's going on there.

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

2 answers: sort voted first

Sorry about the answer before, I didn't add a break statement after the newly added case, so dumb on my part. So to fix this just add this to the switch statement, and you're good to go. This is on 4.10 by the way, so it's still valid.

alt text

more ▼

answered Nov 25 '15 at 10:33 PM

avatar image

Feuern_D
282 8 11 130

avatar image Feuern_D Nov 25 '15 at 10:33 PM

Well, you still have to recompile of course, but yeah, good luck.

avatar image DejfCold Mar 27 '16 at 12:10 AM

Well, sorry for bump, but this is dumb. I just stumbled across this too. Even though there is no class for tank, there is case for it. NWheeledVehicles are less rare than tanks in my opinion and there is nothing. Have you created a feature request of some sort so we don't need to recompile in next versions?

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

It's in the UE4 master branch, so I don't know when it'll be added as a standard. I'm hoping vehicles get some sort of overhaul soon, maybe when they add PhysX 3.4. The shoddy implementation I did is here NwheelVehicleImplementation

more ▼

answered Mar 27 '16 at 04:03 PM

avatar image

Feuern_D
282 8 11 130

(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