|
|
Bounding shapes
There's nothing more horrible than bounding shapes, which don't fit to the car.
So I recommend that you spend some time making bounding shapes. I'll give you some tips.
You can have more than one shape, just put 2 (or more) to "Number of 'Bounding shapes' entries".
Usually I put the body in one bounding shape, and roof in another. So that makes two bounding shapes' entries total.
There is an easy way to create bounding shapes: Make a simple mesh to cover the car. (not very detailed: 32 points is maximum)
Then define the triangles, and select "file/export .ASC"
Then start Plaything 2, and use its "object/convert .ASC to physics shape" Plaything creates a textfile, and just have to copy those bounding shapes into your car's textfile.
I don't use this with cars, I define the bounding shapes myself.
Only first three numbers in every line are necessary. The other three lines are notes , so you know what I'm talking about here.
2 // Number of 'Bounding shapes' entries.
// Bounding shapes entry #1
polyhedron // Type
14 // Body
-0.18 , 0.055 ,-0.4 // L B F1 , 1 (Left , bottom , front)
-0.18 , 0.1 ,-0.42 // L C F1 , 2 (Left , center , front)
-0.18 , 0.17 ,-0.26 // L T F2 , 3 (Left , top , front)
-0.18 , 0.2 , 0.36 // L T R3 , 4
-0.18 , 0.07 , 0.35 // L C R2 , 5
-0.18 , 0.04 , 0.04 // L B R1 , 6
-0.18 , 0.04 ,-0.18 // L B F3 , 7
0.18 , 0.055 ,-0.4 // R B F1 , 1 (Right, bottom , front)
0.18 , 0.1 ,-0.42 // R C F1 , 2
0.18 , 0.17 ,-0.26 // R T F2 , 3
0.18 , 0.2 , 0.36 // R T R3 , 4
0.18 , 0.07 , 0.35 // R C R2 , 5
0.18 , 0.04 , 0.04 // R B R1 , 6
0.18 , 0.04 ,-0.18 // R B F3 , 7
polyhedron // Type
8 // Roof
-0.17 , 0.17 ,-0.22 // L B F , A
-0.1 , 0.24 ,-0.07 // L T F , B
-0.1 , 0.24 , 0.04 // L T R , C
-0.17 , 0.2 , 0.28 // L B R , D
0.17 , 0.17 ,-0.22 // R B F , A
0.1 , 0.24 ,-0.07 // R T F , B
0.1 , 0.24 , 0.04 // R T R , C
0.17 , 0.2 , 0.28 // R B R , D
Back to index
|
|