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. 

Car with exchangeable wheels ?

I have a car which works REALLY well with dynamically exchangeable parts like roofs, hoods, lights, safety frames, turrets and so on. However I found wheels are quite a different thing.

If I have the wheels' geometry included within my main car skeletal mesh, everything's dandy. As soon as I remove the wheel geometry and try to include wheels as static mesh children on the main skeletal mesh (obviously hanging them on correct wheel sockets), the whole thing is becoming as stiff as stiff gets. The suspension doesn't work at all, wheels don't turn anymore... even though:

1, I created bogus wheel bodies in PhAT

2, I have the anim BP correctly set up

3, the tire type has been set up accordingly

4, the wheel static mesh has its collision set up correctly

Is it a requirement for the Wheeled Vehicle to have the wheel geometry included inside the main skeletal mesh for things to work correctly ? Are there workarounds ? Did I miss anything ?

Is there an article / tutorial that explains how things work in a Wheeled Vehicle ? ( I mean in-depth explanation rather than the normal tutorial which doesn't tell you anything except "do this, do that, then it works" )

Product Version: UE 4.8
Tags:
more ▼

asked Aug 26 '15 at 07:37 AM in Blueprint Scripting

avatar image

davek
150 13 8 10

avatar image davek Aug 28 '15 at 06:12 AM

Dare I bump ?

avatar image davek Aug 29 '15 at 07:38 PM

Really ? No one has anything to say whatsoever on this topic ?

avatar image davek Sep 02 '15 at 03:46 PM

Well if no one from the community knows, maybe someone relevant from Epic could help me out ?

avatar image davek Oct 31 '15 at 01:18 PM

2 months on this question is still unanswered.

EPIC can't comment at all ?

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

1 answer: sort voted first

I'm working on the same. If the issue still has not resolved for you, we could exchange notes, so to speak.

What I'm doing, is:

  • In PhAT: Remove any bodies from the "wheels" (which are just joints without a visible mesh) - the physics engine creates the necessary collision body from radius+width in the wheel data.

  • Add 4 StaticMeshComponents to my vehicle BP and attach them to sockets on the wheel joints via AttachToComponent.

  • Set collision for the above components to none (not sure if that is required, but collision issues might occur otherwise and as stated above, collisions are not needed).

  • In construction or on input I set a new mesh for the StaticMeshComponents.

Troubleshooting:

  • Make sure you are using the correct joint names in your vehicle's movement component's wheel setup.

  • Check if the correct Anim Blueprint is set in the mesh's settings and that it has been created specifically for this skeleton AND with VehicleAnimInstance as parent.

  • Anim graph has to have Mesh Ref Pose and Wheel Handler connected to Final Animation Pose.

  • If you have additional nodes connected (LookAt or Transform Bone), deactivate them temporarily.

  • The wheel joints need their pivots to be aligned with the car.

What I'm still trying to figure out, is changing the wheel data in runtime (e.g. wheel radius, friction etc.). I resorted to C++ for that and know what properties to change, but not yet exactly how to apply them. https://answers.unrealengine.com/questions/411603/wheels-properties-realtime.html

more ▼

answered Jun 22 '16 at 10:46 PM

avatar image

Cpt.Trips
107 2 10 20

(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