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"

WheeledVehicleMovementComponent for dynamic robots

Hello everyone!

In my current project the player has to create his own robot from scratch, which means also the wheels. He can decide how many wheels, their size and how they are steered.

I have no clue on how to simulate wheel physics, so I was glad to find the Advanced Vehicle Example, but stumbled upon multiple problems.

The Vehicle Example works with skeletal-meshes, so isn't compatible with players designing their own robot. I really tried to work myself into the code but, honestly, it is not well documented. Is it possible to break the classes of the example-project down in that way that I only feed them the position of all the wheels, their size, material, tire, the weight of the robot and so on, without having to use a skeletal mesh?

My goal would be a framework where I just tell the vehicle-framework about the force thats applied to each wheel every tick or everytime this amount is changed.

As I mentioned, I really tried to get it working myself, but I failed so far. Furthermore, I am a C++ Programmer and try to avoid blueprints as much as possible, and thus the blueprint-example really seems like magic to me, because I nowhere can find some actual data or initalisation processes that I could track along to see how the classes incooperate.

Basically all I need is the functionality of calculating the impact of the wheels on the car. I think I could solve the visual stuff myself. I would be really thankful if someone could show me what code-segments I have to modify / substract to do so. And don't get me wrong, I am not asking to do my work, but as I mentioned 2 times already, I really tried to get it done myself, thus a little bit of a starting point would be appreciated.

Thanks in advance :)


Product Version: UE 4.8
more ▼

asked Aug 24 '15 at 03:48 PM in C++ Programming

avatar image

96 8 16 25

avatar image SiliconPyro Feb 18 '16 at 12:27 AM

I found this question while searching for a solution to this exact problem. Did you ever figure out how to do it?

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

1 answer: sort voted first

Rather than looking at the vehicle examples, look at the rolling ball example. In that example the player controls a ball by applying torque to it, which causes it to roll across the ground. I've already adopted the concept to let the player control a wheel in a similar fashion. If you attached that wheel to a frame of some sort, you'd be on your way to building a robot.

more ▼

answered Feb 18 '16 at 07:02 PM

avatar image

1 1 1

(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