> For the complete documentation index, see [llms.txt](https://rawformula.gitbook.io/renegade/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://rawformula.gitbook.io/renegade/s-y-s-t-e-m/vehicles/drive-cx/code.md).

# code

most common variables that will modify vehicle behavior

* driveCX.maxTorque \[engine strength]
* wheelColl.stiffness \[sidewayfriction.stiffness for slippin]
* wheelColl.wheelDampingRate \[affects how fast vehicle stops]
* driveCX.burn.forceCoef \[sideway force when slippin]
* driveCX.brake.force \[brake force when slippin]

to drive a car without actor inside

* set driveCX.canDrive true
* set driveCX.driverIn true

to be able to do donuts

* set driveCX.burn.typ to onBrakeSetSlip
* affected by: driveCX.burn.forceCoef \[the side force] and driveCX.brake.force

STEERING

.inc.steerFwd

<figure><img src="https://274375387-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMn0TlKNWKe0XSjxGhBMD%2Fuploads%2FEeCozHZrtAbjdZIXjElH%2Fsteerfwd.gif?alt=media&amp;token=1b1096c8-07b5-4cd2-83b5-d6626accc0d0" alt=""><figcaption><p>followWheel</p></figcaption></figure>

.steer.speed \[good value is around 4]

<div><figure><img src="https://274375387-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMn0TlKNWKe0XSjxGhBMD%2Fuploads%2FrkIOYRjEx4CQA4X4Wbzq%2Fsteerspeed1.gif?alt=media&amp;token=1c33d6cc-410d-4b7f-8873-a607fe1c4652" alt=""><figcaption><p>steer speed 1</p></figcaption></figure> <figure><img src="https://274375387-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMn0TlKNWKe0XSjxGhBMD%2Fuploads%2FMFOzcZfvQizpLMEHTy1E%2Fsteerspeed10.gif?alt=media&amp;token=250b5e2d-e117-4a1b-aa18-df957f2a2420" alt=""><figcaption><p>steer speed 10</p></figcaption></figure></div>

.steer.speedCo

this curve adds more precise steering by slower steering at input start

<div align="left"><figure><img src="https://274375387-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMn0TlKNWKe0XSjxGhBMD%2Fuploads%2FKMyaGxtWv7V7zgPi6guj%2FsteerspeedCo.jpg?alt=media&amp;token=b0e55332-fd1c-463f-8578-12946086addc" alt=""><figcaption></figcaption></figure></div>

.wheelx

makes possible to dynamically change wheelColl values

the default wheelColl values are saved to .wheelx\[0] at start

<div align="left"><figure><img src="https://274375387-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMn0TlKNWKe0XSjxGhBMD%2Fuploads%2FXQIGiFQzLpqx3cB7BSs5%2Fwheelx.jpg?alt=media&amp;token=d83f36db-3d15-4ebe-b6cd-57d847199428" alt=""><figcaption></figcaption></figure></div>

.slip&#x20;

adds smoke when the vehicle is skidding

pooling : saved to folder \[slip.fold]

value : the sidewaysSlip value over which the smoke starts

<div align="left"><figure><img src="https://274375387-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMn0TlKNWKe0XSjxGhBMD%2Fuploads%2FGzdN39Z4OPMZNOGwJmZK%2Fslip.jpg?alt=media&amp;token=95b8b947-5ce9-4eb8-91d4-63a7beeac87f" alt=""><figcaption></figcaption></figure></div>
