Create car physics

2

Index

Stats

11,810 visits, 29,739 views

Tools

Translations

This tutorial hasn't been translated.

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Published on 13 Jun, 2012. Last updated 19 Feb, 2019

Create side-view car physics

To create your own side-view car physics (car seen from the side), you need to do some first steps to get it working:

Step 1.

You need a body (the actual car body), two (2) wheels and two (2) axles.

The axles doesn't need to be visible in the finished project if you don't want to. They are needed to calculate the correct suspension.

The size and position of the wheels and axles in relation to the car body, may cause different reactions from the physics car in the end, so make sure you position the wheels and axles as you want them to be.

Step 2.

Add Physics behavior to the car body, the wheels and the two axles.

The car physics behavior uses the existing physics world created by

Construct, in order to be able to react to other physics objects.

So before you add the car physics behavior, you must make sure all car

parts do have the physics behavior.

Very important that you check the density of the car body, axles and wheels and set those right. For example, if the axle density is set too low, the car might not drive at all! And if the car body is too heavy, it might press down on the wheels, making it acceleration slowly if at all.

When all parts have the physics behavior, you can add the Car Physics behavior to the car body, and the car body only! The wheels and axles don't need, and shouldn't have the behavior.

Step 3.

Add the side-view car physics to the car body with the

"Create side view car physics"

Its important that you add the right wheel to the correct inparameter!

Adding back wheel to where the front axle should be in the action menu, will cause issues later on!

Step 4.

Now the last but longest step, is the car physics settings!

Now the car,wheels and axles are merged together and have created a car with fully integrated into the physics world! But it might not drive very well or at all. Now its time to play around with the settings.

Looking at this screenshot, the red box shows what settings you should work with when using the side-view car physics.

It might look confusing at first, but take your time and test each setting to get it as you like. Some of these settings you can change in-game. Look in the action list to see which settings you can change in real time.

So now you have a fully and functional side-view car physics! Congratulations! Just make sure you test and test and test all settings

to get that individual car that you want to have.

Take a look at this simple example to see the side-view car physics in action. (Remember that you need to download and install the Car Physics behavior before you can see the example).

Download example

Download the Car Physics behavior

here

If you neeed more information or have questions, go to the

forum thread for this behavior

  • 1 Comments

  • Order by
Want to leave a comment? Login or Register an account!