1.5 Noncar's textfile editing


Here is a textfile of a noncar:
101 	// Version number
2	// Noncar number, the two-digit number from the name. In this case it's 02Lamp's number.

0 , 0.33 , 0  // Centre of mass position when it is detached. (the real centre of mass)
0 , 0    , 0  // Centre of mass position when it is attached, see note 1.

2 		// Number of bounding shapes. (Used to cause all collisions)
POLYHEDRON	// Type (of the first bounding shape, this first shape is the pole)
8		// Number of points (The points are the vertices of the simple bounding shape model)

-0.025 , 0   ,-0.03	  // Left , bottom , front	  (These are the coordinates)
-0.025 , 1.8 ,-0.03	  // Left , top , front
-0.025 , 1.8 , 0.03	  // Left , top , rear 
-0.025 , 0   , 0.03	  // Left , bottom , rear
 0.025 , 0   ,-0.03	  // Right , bottom , front
 0.025 , 1.8 ,-0.03	  // Right , top , front
 0.025 , 1.8 , 0.03	  // Right , top , rear
 0.025 , 0   , 0.03	  // Right , bottom , rear
 
POLYHEDRON	// Type (of the second bounding shape, which is now the lamp)
8		// number of points

-0.024 , 1.83  ,-0.53 	   // L , B , F
-0.024 , 1.865 ,-0.53	   // L , T , F
-0.024 , 1.79  ,-0.02	   // L , T , R
-0.024 , 1.77  ,-0.02	   // L , B , R
 0.024 , 1.83  ,-0.53	   // R , B , F
 0.024 , 1.865 ,-0.53	   // R , T , F
 0.024 , 1.79  ,-0.02	   // R , T , R
 0.024 , 1.77  ,-0.02	   // R , B , R
 
0.2 , 0.2	   		// Mass unattached , mass attached (in tonnes)
0.05 , 1.85 , 0.56	   	// Total width, height and length of the object. (X , Y , Z)
10	   		  	// Bend angle, see note 2.
0.02				// Torque (KN m) needed to move object
1				// Materials for shrapnel (don't mind of this)
M14.MAT

This wasn't all, but let's see the notes before moving on:
Note 1: so, this is used when the object is still attached to ground, and you should put here the coordinates (x , y , z) where it is attached from. (Usually 0 , 0 , 0) Put the "Y"-value below zero to make it bend more easily. (Example: 0 , -0.05 , 0)
Note 2: How much you have to bend the object before it "snaps" loose. Some values:
0 = Is not attached to ground. (Chairs, cones)
10 = Snaps very easily.
45 = Object has to be in 45 angle to snap.
90 = Very hard to get snapped.

Now let's take a look at keywords. You can make some special effects for objects with these. When you have written all desired keywords, finish the textfile by writing "END" as the last line.
Drivable on , Tumble , World friction , Object friction , World ball joint , Moving noncars (doors , lifts)



1.4 Importing objects into your track in PT2, and amalgamating them Back to index 1.6 Drone's textfile editing