Giving more speed to the car
Now that we have created a basic template for a car within the game, we can now start manipulating more of the fun properties that the XML holds. Let us start out by giving this car a bit more speed.
Getting ready
Complete the Creating a new car XML recipe. Then open MyVehicle.xml
in Notepad or an equivalent editor.
How to do it...
Under the <ArcadeWheeled>
cell, you will find the <Power>
tag; within the <Power
>
tag you will find a property called topSpeed=32
. It is a simple matter of increasing this value to increase the car's overall top speed.
How it works...
The ArcadeWheeled movement property is a new movement behavior since CryENGINE 3. Dealing away with the confusing gear ratios, new backend code has been written to create the Arcade Wheeled for the purpose of being able to tweak the major values on wheeled vehicles much easier.
There's more...
The following are the common properties of an Arcade Wheeled:
Acceleration: How fast the vehicle...