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 Arcade Wheeled 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 will speed up
  • Decceleration: How fast the vehicle will slow down
  • TopSpeed: Top speed that the vehicle can achieve
  • ReverseSpeed: Reversing speed
  • Handbrake-decceleration: Deceleration when hand brake is applied

See also

  • Creating a new car XML
  • Increasing the mass to push objects with the car
  • Giving the car a weak spot
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.117.230.81