Tractor config
From Suf
(Difference between revisions)
(→An Example Tractor) |
(→Sections of the file) |
||
Line 25: | Line 25: | ||
On this line we; | On this line we; | ||
- | Set the model of the tractor, The model that everybody sees | + | *Set the model of the tractor, The model that everybody sees |
- | Set the collision model of the tractor, this is what collides with everything. | + | *Set the collision model of the tractor, this is what collides with everything. |
+ | *Set the weight of the tractor | ||
+ | *Set the position of the mass | ||
+ | |||
+ | Typically, the collision mesh will be a low-polly box model of the tractor. It must be under 100 pollys, and it dose not need a texture or material as we will not be seeing it, only the computer will see it. | ||
+ | |||
+ | The position of the mass is very important for good stability. since we dont see this, we can manipulate it. Here, the mass is set to 0 -10 3, thats 10 units under the tractor, and 3 forwards. It's advisable to set the mass to -50 under the tractor, as this prevents it turning over. |
Revision as of 19:43, 17 November 2007
An Example Tractor
Let's take a look at a basic tractor file:
ExampleTractor.mesh,Example_COLL.mesh,7500,0 -10 3 ENGINE 0.1 CAM 0 12 -6,0 15 -10 HOOK 0 0 -15 WHEEL 6 0 10,false,true,5.0,Example_F.mesh WHEEL -6 0 10,false,true,5.0,Example_F.mesh WHEEL 6 1 -8,true,false,6.0,Example_B.mesh WHEEL -6 1 -8,true,false,6.0,Example_B.mesh
Sections of the file
It might look scary, but once you know what it does, you will be fine!
ExampleTractor.mesh,Example_COLL.mesh,7500,0 -10 3
On this line we;
- Set the model of the tractor, The model that everybody sees
- Set the collision model of the tractor, this is what collides with everything.
- Set the weight of the tractor
- Set the position of the mass
Typically, the collision mesh will be a low-polly box model of the tractor. It must be under 100 pollys, and it dose not need a texture or material as we will not be seeing it, only the computer will see it.
The position of the mass is very important for good stability. since we dont see this, we can manipulate it. Here, the mass is set to 0 -10 3, thats 10 units under the tractor, and 3 forwards. It's advisable to set the mass to -50 under the tractor, as this prevents it turning over.