Join us in Phaze Demesnes

LSL Script Library Home   Add a script Show All
Category: Contributor: Description
Vehicles Anonymous Realistic Car Instructions .lsl
Realistic car instructions
Realistic Car Instructions .lsl

Download this script - Please use this link to get this script. If you see all the code on one long line, please use Wordpad or another editor, such as LSLEdit.exe. The .LSL file you will download is an ordinary text file.

1 // CATEGORY:vehicle
2 // DESCRIPTION:Realistic car instructions
3 // ARCHIVED BY:Ferd Frederix
4
5 Realistic Car Script
6 This a respost from the other forum to mak it easier to find. Also you can get this script along with a sample car for L$1 at my shop. Look for the big glass tower (Rose, 158, 140).
7
8 Here is my submission to the community.
9
10 This a realistic car script. Three main features make it more realistic than your average car script.
11
12 1. You can't turn the car if you are not moving.
13
14 2. The tires rotate when you move and the front wheels turn when you turn.
15
16 3. Reverse steering works the right way.
17
18 There are three parts to this script.
19
20 1. car_main: Goes on the root prim of your vehicle. The "front" of the vehicle will the the postive X axis.
21
22 2. car_seat: Goes on each seat the vehicle has. The avatar's will be oreinted along the positive X axis when seated.
23
24 3. car_front and car_rear_wheel: Goes on the wheels of the vehicle.
25
26 I stole peices of code from all around these fourms to build this. So sorry if I offend anyone by releasing this.
27
28 car_main
29 // END //