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"

Problem with vehicle and articulated part

Hello there,

We're having an issue with the physics of our trucks. These are attached via a constrain to their trailers, which is working fine so far. The trailer does have a VehicleMovementComponent as well, but without any controls.

The trailer's placing and attachment is done via a blueprint. At the time the trailer comes to a halt - the velocity is at 0, so to say - the whole trailer won't move anymore. The truck still reacts to input. Its wheel are steering and rotating on spot. The trailer actually does have a little bit of velocity, but it's barely noticeable.

We've tried various configurations for the truck, trailer and the constraint, unfortunately without any positive result. It looks like something is blocking the movement.

Thank you and kind regards, René.alt text

Product Version: UE 4.10
Tags:
image_001.jpg (209.3 kB)
image_002.jpg (209.3 kB)
image_003.jpg (214.9 kB)
image_004.jpg (210.3 kB)
image_005.jpg (207.7 kB)
more ▼

asked Dec 14 '15 at 10:49 AM in Bug Reports

avatar image

Rene1974
1 1 2

avatar image TJ V ♦♦ STAFF Dec 14 '15 at 05:10 PM

Hi Rene,

I attempted to reproduce this in a new version of the Vehicle template, but I couldn't get your results. Could you try reproducing the issue there or create a small test project using your assets, then upload it here?

If you don't want to upload your assets publicly, you can send me a link to download the project by PM over the Forums.

avatar image TJ V ♦♦ STAFF Dec 28 '15 at 05:02 PM

Hey Rene,

I'm still looking into this. I attempted to reproduce the results that I experienced in your project, inside of a new project that was based off of the Vehicle Template. However, I wasn't able to reproduce the behavior there. Setting up a 'trailer' in the vehicle template work fine.

I'm wondering if it has something to do with the trailer being a separate blueprint, but I'm not sure why that would cause an issue.

avatar image user37337 Jan 05 '16 at 04:46 PM

René is still in holidays so I will answer instead of him.

Can you send your project with the working trailer please?

avatar image TJ V ♦♦ STAFF Jan 05 '16 at 07:36 PM

Hey User,

Here is the test project that I created. It's a super basic version of a truck trailer using the template assets.

avatar image TJ V ♦♦ STAFF Jan 14 '16 at 08:46 PM

Hey User,

Did the test project I sent help give you any clues as to why your setup was having issues?

avatar image user37337 Jan 15 '16 at 01:46 PM

Sorry for the late answer. I don't understand the setup of the wheels in your project. The Blueprint has only one Vehicle Movement Component with 4 Wheels setup. Which setup is used at the "trailer" Wheels? Is it possible to define more than 4 Wheels in the Component?

avatar image Nsomnia Dec 16 '15 at 08:20 PM

I'm looking to do something similar to do a UE4 remake of farming simulator but having a heck of a time getting any kind of trailer to work, they have to have 4 wheels and I cant find a solution (constraints, physics handle, spring arms) that works at all for "pulling" a vehicle. It seems without throttle input the friction on the wheels is infinite on a "Trailer" (from me even trying to push one).

Looks like something that would require massive studio funded coding I dont quite have the skills in c++ to undertake the wheelvehicle class and physx for a pet project, Vehicles has always been an issue in UE4.

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Hi User,

Sorry for the delay.

The trailer is the same Skeletal Mesh that is used for the base car but the 'trailer' component is using a different Physics Asset that has the wheels constrained to a particular axis. The reason for this is the base Physics Asset is not constrained and relies on the Vehicle Movement component to keep the wheels constrained properly.

As far as making a vehicle with more than 4 wheels, here is a bit more info on that. Basically to implement it properly you will need to dip into code. You can however 'fake' it by using a ragdoll/animated wheels as the extra wheels.

more ▼

answered Jan 26 '16 at 05:59 PM

avatar image

TJ V ♦♦ STAFF
41.1k 1009 183 493

(comments are locked)
10|2000 characters needed characters left
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