The Vehicles Section
The Vehicles section allows you to create vehicles for your building. Vehicles are numbered, starting with 1.
The section headers and footers are similar to the
ones in the Floor section.
To specify a single vehicle, you would type something like:
<Vehicle
1>
and end it with:
<EndVehicle>
For a range of vehicles, you would use something like:
<Vehicles 2
to 10>
and end with:
<EndVehicles>
Variables:
%vehicle% - number of the current vehicle
Parameters:
1. Name - sets the name of the
vehicle.
Example: Name
= Car
2. MaxEngineForce - sets the
maximum engine force. Default is 3000
3. SteeringIncrement - sets the
steering increment. Default is 0.04
4. SteeringClamp - sets the
steering clamp, which is the maximum steering value. Default is
0.8.
5. WheelFriction - sets the wheel
friction value. Default is 1e30
6. SuspensionStiffness - sets the
suspension stiffness value. Default is 20
7. SuspensionDamping - sets the
suspension damping value. Default is 2.3
8. SuspensionCompression - sets
the suspension compression. Default is 4.4
9. RollInfluence - sets the roll
influence value. Default is 0.1
10. SuspensionRestLength - sets
the suspension rest length. Default is 0.6
11. MaxSuspensionTravelCm - sets
the maximum suspension travel. Default is 500
12. FrictionSlip - sets the
friction slip value. Default is 10.5
13. ChassisShift - sets the
vehicle's chassis offset, in X, Y and Z values.
ChassisShift =
0, 1, 0
14. ChassisMesh - defines the
mesh file to use for the chassis
ChassisMesh =
ogrebullet/models/chassis.mesh
15. WheelMesh - defines the mesh
file to use for the wheels
ChassisMesh =
ogrebullet/models/wheel.mesh
16. ChassisScale - sets the
scaling factor for the chassis mesh
ChassisScale =
4
17. WheelScale - sets the scaling
factor for the wheel mesh
WheelScale = 4
Commands:
1. CreateVehicle - creates the
vehicle at the specified location. Use this command after the
CreateChassis and AddWheel commands.
Syntax: CreateVehicle
X, Y, Z
Example: CreateVehicle
-50, 0, 0
2. CreateChassis - creates the
vehicle's chassis. The parameters are physics options that are
used when creating the rigid body
Syntax: CreateChassis
restitution, friction, mass, linear_dampening,
angular_dampening
Example: CreateChassis
0.6, 0.6, 800, 0.2, 0.2
3. AddWheel - adds a wheel to
this vehicle. If engine is true, the wheel is powered
by the engine. If steerable is true, the wheel is
controlled by the steering wheel. The ConnectionPoint values
specify the point at which to connect the wheel to the chassis.
The Direction and Axle values are optional, and the defaults for
those are "0, 01, 0" for the Direction, and "-1, 0, 0" for the
Axle.
Syntax: AddWheel
engine, steerable, IsFrontWheel, radius, ConnectionPointX,
ConnectionPointY, ConnectionPointZ[, DirectionX,
DirectionY, DirectionZ, AxleX, AxleY, AxleZ]
Example: AddWheel
true, true, true, 0.3, -1, 0, 0