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"

PhysX Vehicle Has Constant Force Applied

Video Demo

I have made a vehicle using the PhysX PxVehicleDriveTank.h file and there appears to be a constant forwards force applied to the vehicle. The effect gets worse the more wheels that I add.

In the attached video I have a vehicle with the max of 20 wheels and when I give it no reverse input it looks like it is breaking and when I give it no forwards input it doesn't slow down.

Does anyone know where to look for this issue as I have looked through the code and can't see what is causing it myself.

I have tried editing: wheel weights, engine damping, centre of mass, suspension forces, checked the physics asset for internal collisions and have not found the cause.

All I have worked out is it is something to do with the driveline/wheels as changing wheel weights makes the problem worse/better. But I don't think this is the issue as even when better it still happens and It makes no physics sense, especially considering with higher wheel weights the vehicle will accelerate with no wheel torque applied.

Product Version: UE 4.18
Tags:
more ▼

asked May 10 '19 at 02:38 PM in C++ Programming

avatar image

stigglewiggle
2 4 5 9

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

1 answer: sort voted first

I have fixed my problem.

If anyone else comes across this, the issue stems from the Special input mode. In Special input you can use negative inputs on the engine to perform neutral steering. If you put negative inputs here for reversing the clutch on the vehicle will think that it is still moving forwards and will disengage the clutch to prevent stalling.

The other issue when moving forwards I have not completely fixed, but have made the symptom go away by increasing the Damping on the vehicles wheels.

more ▼

answered May 20 '19 at 05:10 PM

avatar image

stigglewiggle
2 4 5 9

(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