Increasing the mass to push objects with the car
In this recipe, we explore some of the possibilities of manipulating the Massbox that we created when first creating the car's XML. With increasing the Massbox of the car, we will see how the car is able to push lighter objects out of the way.
Getting ready
Complete the Creating a new car XML recipe. Then open MyVehicle.xml
in Notepad or an equivalent editor.
How to do it...
As simple as the previous recipe was, this one will be just as easy to make a massive change to your vehicle.
Begin by finding the car's part named massBox
. To increase the mass of the MassBox, simply increase the mass
= 1500
to a higher value such as 3500
.
Note
The mass in CryENGINE 3 is measured in kilograms.
How it works...
A simple method to see the results of how easy it is for the car to move objects out of its way is to place down a basic entity with a mass of 1000
and then drive into it with the previous MassBox properties. Then repeat the process again with the 3500 MassBox...