Home | Rain needs windscreen wipers. |
|
Introduction
Windscreen wipers can be added to car using extra 3D models. The default control key for the wipers is the 'W' key. You can go through each wiper speed by pressing W repeatedly.
Wipers are added as separate 3D models, wiping along a single axis.
An example extract for car.ini
Here is an example that uses 2 wipers, both the same 3D model. Notice the position with respect to the car's nullpoint, and the angle of rotation. An example wiper.dof can be downloaded here, to check out the orientation of modeling.
Below, the 'xa' angle indicates the rotation in degrees around the X axis, to place the wiper onto the screen. That will take some tweaking to avoid it intersecting with any window model too much.
wipers
{
; Windscreen wipers
count=2
wiper0
{
x=0.62
y=0.41
z=0.62
xa=55
min_angle=95
max_angle=20
model
{
file=wiper.dof
}
}
wiper1
{
x=0
y=0.43
z=0.76
xa=60
min_angle=85
max_angle=25
model
{
file=wiper.dof
}
} }
(last updated November 13, 2012 )