Use a better model
parent
a6129c8336
commit
cb85d45a05
2
init.lua
2
init.lua
|
@ -11,7 +11,7 @@ local cart = {
|
||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
mesh = "cart.x",
|
mesh = "cart.x",
|
||||||
visual_size = {x=1, y=1},
|
visual_size = {x=1, y=1},
|
||||||
textures = {"cart_top.png", "cart_bottom.png", "cart_side.png", "cart_side.png", "cart_side.png", "cart_side.png"},
|
textures = {"cart.png"},
|
||||||
|
|
||||||
driver = nil,
|
driver = nil,
|
||||||
velocity = {x=0, y=0, z=0},
|
velocity = {x=0, y=0, z=0},
|
||||||
|
|
Binary file not shown.
206
models/cart.x
206
models/cart.x
|
@ -9,9 +9,9 @@ Frame Root {
|
||||||
}
|
}
|
||||||
Frame Cube {
|
Frame Cube {
|
||||||
FrameTransformMatrix {
|
FrameTransformMatrix {
|
||||||
1.000000, 0.000000, 0.000000, 0.000000,
|
5.000000, 0.000000, 0.000000, 0.000000,
|
||||||
0.000000, 1.000000, 0.000000, 0.000000,
|
0.000000, 5.000000, 0.000000, 0.000000,
|
||||||
0.000000, 0.000000, 1.000000, 0.000000,
|
0.000000, 0.000000, 5.000000, 0.000000,
|
||||||
0.000000, 0.000000, 0.000000, 1.000000;;
|
0.000000, 0.000000, 0.000000, 1.000000;;
|
||||||
}
|
}
|
||||||
Mesh { //Cube_001 Mesh
|
Mesh { //Cube_001 Mesh
|
||||||
|
@ -202,123 +202,131 @@ Frame Root {
|
||||||
4;68;69;70;71;;
|
4;68;69;70;71;;
|
||||||
} //End of Cube_001 Normals
|
} //End of Cube_001 Normals
|
||||||
MeshMaterialList { //Cube_001 Material List
|
MeshMaterialList { //Cube_001 Material List
|
||||||
3;
|
1;
|
||||||
18;
|
18;
|
||||||
0,
|
0,
|
||||||
1,
|
|
||||||
2,
|
|
||||||
1,
|
|
||||||
1,
|
|
||||||
1,
|
|
||||||
1,
|
|
||||||
1,
|
|
||||||
2,
|
|
||||||
1,
|
|
||||||
1,
|
|
||||||
0,
|
0,
|
||||||
2,
|
0,
|
||||||
2,
|
0,
|
||||||
2,
|
0,
|
||||||
2,
|
0,
|
||||||
2,
|
0,
|
||||||
2;;
|
0,
|
||||||
Material Bottom {
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0;;
|
||||||
|
Material Material {
|
||||||
0.640000; 0.640000; 0.640000; 1.000000;;
|
0.640000; 0.640000; 0.640000; 1.000000;;
|
||||||
96.078431;
|
96.078431;
|
||||||
0.500000; 0.500000; 0.500000;;
|
0.500000; 0.500000; 0.500000;;
|
||||||
0.000000; 0.000000; 0.000000;;
|
0.000000; 0.000000; 0.000000;;
|
||||||
TextureFilename {"carts_cart_bottom.png";}
|
TextureFilename {"cart.png";}
|
||||||
}
|
|
||||||
Material Top {
|
|
||||||
0.640000; 0.640000; 0.640000; 1.000000;;
|
|
||||||
96.078431;
|
|
||||||
0.500000; 0.500000; 0.500000;;
|
|
||||||
0.000000; 0.000000; 0.000000;;
|
|
||||||
TextureFilename {"carts_cart_top.png";}
|
|
||||||
}
|
|
||||||
Material Side {
|
|
||||||
0.640000; 0.640000; 0.640000; 1.000000;;
|
|
||||||
96.078431;
|
|
||||||
0.500000; 0.500000; 0.500000;;
|
|
||||||
0.000000; 0.000000; 0.000000;;
|
|
||||||
TextureFilename {"carts_cart_side.png";}
|
|
||||||
}
|
}
|
||||||
} //End of Cube_001 Material List
|
} //End of Cube_001 Material List
|
||||||
MeshTextureCoords { //Cube_001 UV Coordinates
|
MeshTextureCoords { //Cube_001 UV Coordinates
|
||||||
72;
|
72;
|
||||||
0.000000; 0.000000;,
|
0.000000; 0.500000;,
|
||||||
1.000000; 0.000000;,
|
0.500000; 0.500000;,
|
||||||
1.000000; 1.000000;,
|
0.500000; 1.000000;,
|
||||||
0.000000; 1.000000;,
|
0.000000; 1.000000;,
|
||||||
0.062500; 1.000000;,
|
0.031250; 0.500000;,
|
||||||
-0.000000; 1.000000;,
|
-0.000000; 0.500000;,
|
||||||
-0.000000; 0.937500;,
|
-0.000000; 0.468750;,
|
||||||
0.062500; 0.937500;,
|
0.031250; 0.468750;,
|
||||||
-0.000000; 1.000000;,
|
0.500000; 0.500000;,
|
||||||
|
0.500000; 0.000000;,
|
||||||
|
1.000000; 0.000000;,
|
||||||
|
1.000000; 0.500000;,
|
||||||
|
0.468750; 0.468750;,
|
||||||
|
0.500000; 0.468750;,
|
||||||
|
0.500000; 0.500000;,
|
||||||
|
0.468750; 0.500000;,
|
||||||
|
0.031250; 0.468750;,
|
||||||
|
0.468750; 0.468750;,
|
||||||
|
0.468750; 0.500000;,
|
||||||
|
0.031250; 0.500000;,
|
||||||
|
0.468750; 0.000000;,
|
||||||
|
0.500000; 0.000000;,
|
||||||
|
0.500000; 0.031250;,
|
||||||
|
0.468750; 0.031250;,
|
||||||
|
0.468750; 0.031250;,
|
||||||
|
0.500000; 0.031250;,
|
||||||
|
0.500000; 0.468750;,
|
||||||
|
0.468750; 0.468750;,
|
||||||
|
0.468750; 0.031250;,
|
||||||
|
0.031250; 0.031250;,
|
||||||
|
0.031250; 0.000000;,
|
||||||
|
0.468750; 0.000000;,
|
||||||
|
1.000000; 0.500000;,
|
||||||
|
0.500000; 0.500000;,
|
||||||
|
0.500000; 0.000000;,
|
||||||
|
1.000000; 0.000000;,
|
||||||
|
0.031250; 0.031250;,
|
||||||
|
0.000000; 0.031250;,
|
||||||
0.000000; 0.000000;,
|
0.000000; 0.000000;,
|
||||||
1.000000; 0.000000;,
|
0.031250; 0.000000;,
|
||||||
1.000000; 1.000000;,
|
0.031250; 0.468750;,
|
||||||
0.937500; 0.937500;,
|
-0.000000; 0.468750;,
|
||||||
1.000000; 0.937500;,
|
0.000000; 0.031250;,
|
||||||
1.000000; 1.000000;,
|
0.031250; 0.031250;,
|
||||||
0.937500; 1.000000;,
|
0.000000; 0.500000;,
|
||||||
0.062500; 0.937500;,
|
0.500000; 0.500000;,
|
||||||
0.937500; 0.937500;,
|
0.500000; 1.000000;,
|
||||||
0.937500; 1.000000;,
|
|
||||||
0.062500; 1.000000;,
|
|
||||||
0.937500; 0.000000;,
|
|
||||||
1.000000; 0.000000;,
|
|
||||||
1.000000; 0.062500;,
|
|
||||||
0.937500; 0.062500;,
|
|
||||||
0.937500; 0.062500;,
|
|
||||||
1.000000; 0.062500;,
|
|
||||||
1.000000; 0.937500;,
|
|
||||||
0.937500; 0.937500;,
|
|
||||||
0.937500; 0.062500;,
|
|
||||||
0.062500; 0.062500;,
|
|
||||||
0.062500; 0.000000;,
|
|
||||||
0.937500; 0.000000;,
|
|
||||||
1.000000; 1.000000;,
|
|
||||||
0.000000; 1.000000;,
|
0.000000; 1.000000;,
|
||||||
0.000000; 0.000000;,
|
1.000000; 0.500000;,
|
||||||
|
0.500000; 0.500000;,
|
||||||
|
0.500000; 0.000000;,
|
||||||
1.000000; 0.000000;,
|
1.000000; 0.000000;,
|
||||||
0.062500; 0.062500;,
|
1.000000; 0.500000;,
|
||||||
0.000000; 0.062500;,
|
0.500000; 0.500000;,
|
||||||
0.000000; 0.000000;,
|
0.500000; 0.000000;,
|
||||||
0.062500; 0.000000;,
|
|
||||||
0.062500; 0.937500;,
|
|
||||||
-0.000000; 0.937500;,
|
|
||||||
0.000000; 0.062500;,
|
|
||||||
0.062500; 0.062500;,
|
|
||||||
0.000000; 0.000000;,
|
|
||||||
1.000000; 0.000000;,
|
1.000000; 0.000000;,
|
||||||
1.000000; 1.000000;,
|
1.000000; 0.500000;,
|
||||||
0.000000; 1.000000;,
|
0.500000; 0.500000;,
|
||||||
1.000000; 1.000000;,
|
0.500000; 0.000000;,
|
||||||
0.000000; 1.000000;,
|
|
||||||
0.000000; 0.000000;,
|
|
||||||
1.000000; 0.000000;,
|
1.000000; 0.000000;,
|
||||||
1.000000; 1.000000;,
|
0.500000; 0.500000;,
|
||||||
0.000000; 1.000000;,
|
0.500000; 0.000000;,
|
||||||
0.000000; 0.000000;,
|
|
||||||
1.000000; 0.000000;,
|
1.000000; 0.000000;,
|
||||||
1.000000; 1.000000;,
|
1.000000; 0.500000;,
|
||||||
0.000000; 1.000000;,
|
|
||||||
0.000000; 0.000000;,
|
|
||||||
1.000000; 0.000000;,
|
1.000000; 0.000000;,
|
||||||
-0.000000; 1.000000;,
|
1.000000; 0.500000;,
|
||||||
0.000000; 0.000000;,
|
0.500000; 0.500000;,
|
||||||
|
0.500000; 0.000000;,
|
||||||
|
0.500000; 0.500000;,
|
||||||
|
0.500000; 0.000000;,
|
||||||
1.000000; 0.000000;,
|
1.000000; 0.000000;,
|
||||||
1.000000; 1.000000;,
|
1.000000; 0.500000;;
|
||||||
1.000000; 0.000000;,
|
|
||||||
1.000000; 1.000000;,
|
|
||||||
-0.000000; 1.000000;,
|
|
||||||
0.000000; 0.000000;,
|
|
||||||
-0.000000; 1.000000;,
|
|
||||||
0.000000; 0.000000;,
|
|
||||||
1.000000; 0.000000;,
|
|
||||||
1.000000; 1.000000;;
|
|
||||||
} //End of Cube_001 UV Coordinates
|
} //End of Cube_001 UV Coordinates
|
||||||
} //End of Cube_001 Mesh
|
} //End of Cube_001 Mesh
|
||||||
} //End of Cube
|
} //End of Cube
|
||||||
} //End of Root Frame
|
} //End of Root Frame
|
||||||
|
AnimationSet {
|
||||||
|
Animation {
|
||||||
|
{Cube}
|
||||||
|
AnimationKey { //Position
|
||||||
|
2;
|
||||||
|
1;
|
||||||
|
0;3; 0.000000, 0.000000, 0.000000;;;
|
||||||
|
}
|
||||||
|
AnimationKey { //Rotation
|
||||||
|
0;
|
||||||
|
3;
|
||||||
|
0;4; -1.000000, 0.000000, 0.000000, 0.000000;;,
|
||||||
|
1;4; -0.923880, 0.000000, 0.382683, 0.000000;;,
|
||||||
|
2;4; -0.923880, 0.000000,-0.382683,-0.000000;;;
|
||||||
|
}
|
||||||
|
AnimationKey { //Scale
|
||||||
|
1;
|
||||||
|
1;
|
||||||
|
0;3; 5.000000, 5.000000, 5.000000;;;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} //End of AnimationSet
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 422 B |
Loading…
Reference in New Issue