-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbullet.js
62 lines (51 loc) · 14.8 KB
/
bullet.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{
"metadata":
{
"sourceFile": "bullet.max",
"generatedBy": "3ds max ThreeJSExporter",
"formatVersion": 3,
"vertices": 88,
"normals": 172,
"colors": 0,
"uvs": 152,
"triangles": 172,
"materials": 3
},
"materials": [
{
"DbgIndex" : 0,
"DbgName" : "09 - Default",
"colorDiffuse" : [0.7961, 0.7961, 0.7961],
"colorAmbient" : [0.7961, 0.7961, 0.7961],
"colorSpecular" : [0.9000, 0.9000, 0.9000],
"transparency" : 1.0,
"specularCoef" : 10.0,
"vertexColors" : false
},
{
"DbgIndex" : 1,
"DbgName" : "07 - Default",
"colorDiffuse" : [0.8863, 0.4706, 0.1059],
"colorAmbient" : [0.8863, 0.4706, 0.1059],
"colorSpecular" : [0.9000, 0.9000, 0.9000],
"transparency" : 1.0,
"specularCoef" : 10.0,
"vertexColors" : false
},
{
"DbgIndex" : 2,
"DbgName" : "08 - Default",
"colorDiffuse" : [0.7176, 0.7176, 0.7176],
"colorAmbient" : [0.7176, 0.7176, 0.7176],
"colorSpecular" : [0.9000, 0.9000, 0.9000],
"transparency" : 1.0,
"specularCoef" : 10.0,
"vertexColors" : false
}
],
"vertices": [-3.782,-1.782,2.0,2.00579,-2.0,1.782,-4.0,-1.782,-1.782,2.00579,-2.0,-1.782,-3.782,1.782,2.0,2.37841,1.57961,1.84633,-4.0,1.782,-1.782,2.00579,1.782,-2.0,3.84538,-0.388382,0.121663,3.84538,-0.121663,-0.388382,3.84538,0.388382,-0.121663,3.84538,0.121663,0.388382,-4.0,-1.782,1.782,-3.782,-2.0,1.782,2.37841,-1.84633,1.57961,2.37841,-1.57961,1.84633,2.00579,-1.782,2.0,-3.782,-1.782,-2.0,-3.782,-2.0,-1.782,2.00579,-1.782,-2.0,2.37841,-1.57961,-1.84633,2.37841,-1.84633,-1.57961,-3.782,2.0,1.782,-4.0,1.782,1.782,2.37841,1.84633,1.57961,2.00579,2.0,1.782,2.00579,1.782,2.0,-3.782,2.0,-1.782,-3.782,1.782,-2.0,2.00579,2.0,-1.782,2.37841,1.84633,-1.57961,2.37841,1.57961,-1.84633,4.0,-0.0167093,0.0167093,3.84538,-0.121663,0.388382,4.0,-0.0167093,-0.0167093,3.84538,-0.388382,-0.121663,4.0,0.0167093,-0.0167093,3.84538,0.121663,-0.388382,4.0,0.0167093,0.0167093,3.84538,0.388382,0.121663,-3.00365,-2.0,-1.782,-2.37579,-2.0,-1.782,-2.37579,-2.0,1.782,-3.00365,-2.0,1.782,-3.00365,2.0,1.782,-2.37579,2.0,1.782,-2.37579,2.0,-1.782,-3.00365,2.0,-1.782,-3.00365,-1.782,-2.0,-2.37579,-1.782,-2.0,-2.37579,-1.782,2.0,-3.00365,-1.782,2.0,-3.00365,1.782,2.0,-2.37579,1.782,2.0,-2.37579,1.782,-2.0,-3.00365,1.782,-2.0,-2.59379,-1.42867,-1.54535,-2.59379,-1.42867,1.54535,-2.59379,-1.54535,1.42867,-2.59379,1.54537,1.42865,-2.59379,1.42865,1.54537,-2.59379,1.42865,-1.54537,-2.59379,1.54537,-1.42865,-2.59379,-1.54535,-1.42867,-2.78565,-1.42867,1.54535,-2.78565,-1.42867,-1.54535,-2.78565,-1.54535,-1.42867,-2.78565,1.54537,-1.42865,-2.78565,1.42865,-1.54537,-2.78565,1.42865,1.54537,-2.78565,1.54537,1.42865,-2.78565,-1.54535,1.42867,-2.78565,-1.79859,-1.69858,-2.59379,-1.79859,-1.69858,-2.59379,-1.79859,1.69858,-2.78565,-1.79859,1.69858,-2.78565,1.79859,1.69858,-2.59379,1.79859,1.69858,-2.59379,1.79859,-1.69858,-2.78565,1.79859,-1.69858,-2.78565,-1.69858,-1.79859,-2.59379,-1.69858,-1.79859,-2.59379,-1.69858,1.79859,-2.78565,-1.69858,1.79859,-2.78565,1.69858,1.79859,-2.59379,1.69858,1.79859,-2.59379,1.69858,-1.79859,-2.78565,1.69858,-1.79859],
"normals": [0.0,-1.0,0.0,0.0,-1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,3.47131e-006,1.0,0.0,3.47131e-006,1.0,1.0,0.0,0.0,1.0,0.0,0.0,0.0,3.47131e-006,-1.0,0.0,3.47131e-006,-1.0,-1.0,0.0,0.0,-1.0,0.0,0.0,0.704922,-0.709284,0.0,0.704922,-0.709284,0.0,0.704922,0.0,-0.709284,0.704922,0.0,-0.709284,0.704922,0.709284,0.0,0.704922,0.709284,0.0,0.704922,0.0,0.709284,0.704922,0.0,0.709284,-0.57735,-0.57735,0.57735,0.559863,-0.585898,0.585898,0.559863,-0.585898,0.585898,-0.57735,-0.57735,-0.57735,0.559863,-0.585898,-0.585898,0.559863,-0.585898,-0.585898,-0.57735,0.57735,0.57735,0.559863,0.585898,0.585898,0.559863,0.585898,0.585898,-0.57735,0.57735,-0.57735,0.559863,0.585898,-0.585898,0.559863,0.585898,-0.585898,0.908908,-0.294862,0.294862,0.908908,-0.294862,-0.294862,0.908908,0.294862,-0.294862,0.908908,0.294862,0.294862,-0.707107,-0.707107,0.0,-0.707107,-0.707107,0.0,0.0,0.707107,0.707107,0.0,0.707107,0.707107,0.381258,-0.924469,0.0,0.381258,-0.924469,0.0,0.0,0.707107,-0.707107,0.0,0.707107,-0.707107,0.0,-0.707107,-0.707106,0.0,-0.707107,-0.707106,0.381258,0.924469,0.0,0.381258,0.924469,0.0,0.0,-0.707107,0.707106,0.0,-0.707107,0.707106,-0.707107,0.707107,0.0,-0.707107,0.707107,0.0,0.381258,0.0,0.924469,0.381258,0.0,0.924469,-0.707107,0.0,0.707107,-0.707107,0.0,0.707107,0.381258,0.0,-0.924469,0.381258,0.0,-0.924469,-0.707107,0.0,-0.707107,-0.707107,0.0,-0.707107,0.923288,-0.384108,0.0,0.923288,-0.384108,0.0,0.923288,0.0,-0.384108,0.923288,0.0,-0.384108,0.923288,0.384108,0.0,0.923288,0.384108,0.0,0.923288,0.0,0.384108,0.923288,0.0,0.384108,0.814812,-0.409927,0.409927,0.814812,-0.409927,0.409927,0.814812,-0.409927,-0.409927,0.814812,-0.409927,-0.409927,0.814812,0.409927,-0.409927,0.814812,0.409927,-0.409927,0.814812,0.409927,0.409927,0.814812,0.409927,0.409927,0.0,-1.0,0.0,0.0,-1.0,0.0,0.0,-1.0,0.0,0.0,-1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,-1.0,0.0,0.0,-1.0,0.0,0.0,-1.0,0.0,0.0,-1.0,0.0,-0.707107,-0.707107,0.0,-0.707107,-0.707107,0.0,-0.707107,-0.707107,0.0,-0.707107,-0.707107,0.0,-0.707107,0.707107,0.0,-0.707107,0.707107,0.0,-0.707107,0.707107,0.0,-0.707107,0.707107,0.0,0.707107,0.707107,0.0,0.707107,0.707107,0.0,0.707107,0.707107,0.0,0.707107,0.707107,0.0,0.707107,-0.707107,0.0,0.707107,-0.707107,0.0,0.707107,-0.707107,0.0,0.707107,-0.707107,-1.0,0.0,0.0,-1.0,0.0,0.0,-1.0,0.0,0.0,1.0,0.0,0.0,-1.0,0.0,0.0,-1.0,0.0,0.0,-1.0,0.0,0.0,1.0,0.0,0.0,-1.0,0.0,0.0,-1.0,0.0,0.0,-1.0,0.0,0.0,1.0,0.0,0.0,-1.0,0.0,0.0,-1.0,0.0,0.0,-1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,-1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,-1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,-1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,-1.0,0.0,0.0,-0.678598,-0.734509,0.0,-0.678599,-0.734509,0.0,0.678598,-0.734509,0.0,0.678599,-0.734509,0.0,-0.678605,0.734503,0.0,-0.678605,0.734503,0.0,0.678605,0.734503,0.0,0.678605,0.734503,0.0,-0.678598,0.0,0.734509,-0.678606,8.72405e-007,0.734503,0.678605,0.0,0.734503,0.678598,8.24787e-007,0.73451,0.678598,0.0,-0.734509,0.678606,8.24779e-007,-0.734503,-0.678605,0.0,-0.734503,-0.678598,7.77161e-007,-0.73451,-0.678599,-0.519377,-0.519377,-0.678599,-0.519377,-0.519377,0.678599,-0.519377,-0.519377,0.678599,-0.519377,-0.519377,0.678599,-0.519377,0.519377,0.678599,-0.519377,0.519377,-0.678599,-0.519377,0.519377,-0.678599,-0.519377,0.519377,-0.678591,0.519381,0.519381,-0.678592,0.519381,0.519381,0.678592,0.519381,0.519381,0.678591,0.519382,0.519381,0.678591,0.519381,-0.519381,0.678592,0.519381,-0.519381,-0.678592,0.519381,-0.519381,-0.678591,0.519382,-0.519381],
"colors": [],
"uvs": [[0.964973,0.9455,0.0350269,0.9455,0.964973,0.0545,0.0350269,0.0545,0.0350269,0.9455,0.912947,0.846268,0.0350269,0.0545,0.964973,0.0545,0.0350269,0.9455,0.912947,0.93332,0.0350269,0.0545,0.912947,0.143516,0.0350269,0.9455,0.964973,0.9455,0.0350269,0.0545,0.964973,0.0545,0.0545,0.9455,0.9455,0.9455,0.0545,0.0545,0.9455,0.0545,0.130947,0.948687,0.912947,0.81774,0.869053,0.0513127,0.0870526,0.18226,-0.0237718,0.911553,-0.0237718,0.979447,0.0870526,0.943536,0.964973,0.9455,0.121035,0.939791,0.0628018,0.942439,-0.00429873,0.911553,-0.00429873,0.979447,0.0870526,0.856484,0.0870526,0.153732,0.0147348,0.0672221,0.0622254,0.169298,-0.0237718,0.0205525,-0.0237718,0.0884475,0.964973,0.9455,0.964973,0.0545,0.931598,0.15784,0.980217,0.0662073,-0.00429873,0.0205525,-0.00429873,0.0884475,0.912947,0.0564639,0.0870526,0.06668,0.0577534,0.058576,0.114858,0.0716668,0.109,0.891,0.0870526,0.93332,0.891,0.891,0.912947,0.979627,0.891,0.109,0.912947,0.06668,0.109,0.109,0.0870526,0.0203726,0.9455,0.868425,0.0545,0.868425,0.964973,0.995036,0.0350269,0.995036,0.964973,0.995036,0.0350269,0.995036,0.0350269,0.00496447,0.964973,0.00496447,0.0350269,0.00496447,0.964973,0.00496447,0.0545,0.131575,0.9455,0.131575,0.868425,0.0545,0.868425,0.9455,0.131575,0.9455,0.131575,0.0545,0.0376358,1.09036,0.0815307,1.09551,0.286554,0.991621,1.11245,0.952878,0.962364,-0.0903602,0.918469,-0.0955114,0.713446,0.0083788,-0.112449,0.0471224,0.839913,0.0545,0.739031,0.0545,0.839913,0.995036,0.739031,0.995036,0.739031,0.9455,0.839913,0.9455,0.260969,0.995036,0.160087,0.995036,0.160087,0.9455,0.260969,0.9455,0.160087,0.00496447,0.260969,0.00496447,0.260969,0.0545,0.160087,0.0545,0.739032,0.00496447,0.839913,0.00496447,0.839913,0.9455,0.739031,0.9455,0.260969,0.9455,0.160087,0.9455,0.160087,0.0545,0.260969,0.0545,0.739031,0.0545,0.839913,0.0545,0.774058,0.0545,0.774058,0.995036,0.774058,0.9455,0.225942,0.995036,0.225942,0.9455,0.225942,0.0545,0.225942,0.9455,0.225942,0.00496447,0.225942,0.0545,0.774058,0.00496447,0.774058,0.0545,0.774058,0.9455,0.804886,0.9455,0.195114,0.995036,0.804886,0.0545,0.804886,0.995036,0.804886,0.9455,0.804886,0.0545,0.195114,0.0545,0.804886,0.00496447,0.195114,0.9455,0.195114,0.00496447,0.195114,0.0545,0.195114,0.9455,0.804886,0.0545,0.804886,0.995036,0.774058,0.995036,0.774058,0.0545,0.774058,0.9455,0.225942,0.995036,0.195114,0.995036,0.804886,0.9455,0.195114,0.9455,0.195114,0.00496447,0.225942,0.00496447,0.225942,0.9455,0.225942,0.0545,0.774058,0.00496447,0.804886,0.00496447,0.195114,0.0545,0.804886,0.9455,0.774058,0.9455,0.225942,0.9455,0.195114,0.9455,0.195114,0.0545,0.225942,0.0545,0.774058,0.0545,0.804886,0.0545]],
"faces": [42,56,57,64,0,104,106,116,0,0,0,42,64,65,56,0,116,118,104,1,1,1,42,60,61,68,0,110,112,122,2,2,2,42,68,69,60,0,122,124,110,3,3,3,42,58,59,70,0,108,109,126,4,4,4,42,70,71,58,0,126,127,108,5,5,5,42,32,34,36,1,48,50,52,6,6,6,42,36,38,32,1,52,54,48,7,7,7,42,66,67,62,0,120,121,114,8,8,8,42,62,63,66,0,114,115,120,9,9,9,42,2,12,23,0,16,17,19,10,10,10,42,23,6,2,0,19,18,16,11,11,11,42,14,21,35,1,26,33,51,12,12,12,42,35,8,14,1,51,20,26,13,13,13,42,20,31,37,1,32,45,53,14,14,14,42,37,9,20,1,53,21,32,15,15,15,42,30,24,39,1,44,5,55,16,16,16,42,39,10,30,1,55,22,44,17,17,17,42,5,15,33,1,11,9,49,18,18,18,42,33,11,5,1,49,23,11,19,19,19,42,0,12,13,0,8,24,25,20,20,20,42,1,14,15,1,1,26,28,21,21,21,42,15,16,1,1,28,29,1,22,22,22,42,2,17,18,0,16,30,31,23,23,23,42,3,19,20,1,3,34,35,24,24,24,42,20,21,3,1,35,33,3,25,25,25,42,4,22,23,0,10,36,37,26,26,26,42,5,24,25,1,11,40,41,27,27,27,42,25,26,5,1,41,39,11,28,28,28,42,6,27,28,0,18,42,43,29,29,29,42,7,29,30,1,14,46,47,30,30,30,42,30,31,7,1,47,45,14,31,31,31,42,8,32,33,1,20,48,49,32,32,32,42,9,34,35,1,21,50,51,33,33,33,42,10,36,37,1,22,52,53,34,34,34,42,11,38,39,1,23,54,55,35,35,35,42,13,12,2,0,56,17,16,36,36,36,42,2,18,13,0,16,57,56,37,37,37,42,63,56,65,0,115,105,119,38,38,38,42,65,66,63,0,119,120,115,39,39,39,42,14,1,3,1,26,1,3,40,40,40,42,3,21,14,1,3,33,26,41,41,41,42,71,64,57,0,127,117,107,42,42,42,42,57,58,71,0,107,108,127,43,43,43,42,59,60,69,0,109,111,125,44,44,44,42,69,70,59,0,125,126,109,45,45,45,42,30,29,25,1,44,7,38,46,46,46,42,25,24,30,1,38,5,44,47,47,47,42,67,68,61,0,121,123,113,48,48,48,42,61,62,67,0,113,114,121,49,49,49,42,27,6,23,0,66,18,19,50,50,50,42,23,22,27,0,19,67,66,51,51,51,42,5,26,16,1,11,39,27,52,52,52,42,16,15,5,1,27,9,11,53,53,53,42,4,23,12,0,68,19,17,54,54,54,42,12,0,4,0,17,69,68,55,55,55,42,20,19,7,1,32,12,14,56,56,56,42,7,31,20,1,14,45,32,57,57,57,42,17,2,6,0,70,16,18,58,58,58,42,6,28,17,0,18,71,70,59,59,59,42,32,8,35,1,48,20,51,60,60,60,42,35,34,32,1,51,50,48,61,61,61,42,34,9,37,1,50,21,53,62,62,62,42,37,36,34,1,53,52,50,63,63,63,42,36,10,39,1,52,22,55,64,64,64,42,39,38,36,1,55,54,52,65,65,65,42,38,11,33,1,54,23,49,66,66,66,42,33,32,38,1,49,48,54,67,67,67,42,15,14,8,1,72,26,20,68,68,68,42,8,33,15,1,20,73,72,69,69,69,42,21,20,9,1,74,32,21,70,70,70,42,9,35,21,1,21,75,74,71,71,71,42,31,30,10,1,76,44,22,72,72,72,42,10,37,31,1,22,77,76,73,73,73,42,24,5,11,1,78,11,23,74,74,74,42,11,39,24,1,23,79,78,75,75,75,42,3,1,42,1,3,1,84,76,76,76,42,42,41,3,1,84,81,3,77,77,77,42,13,18,40,0,0,2,80,78,78,78,42,40,43,13,0,80,85,0,79,79,79,42,25,29,46,1,38,7,92,80,80,80,42,46,45,25,1,92,89,38,81,81,81,42,27,22,44,0,6,4,88,82,82,82,42,44,47,27,0,88,93,6,83,83,83,42,16,26,53,1,27,39,101,84,84,84,42,53,50,16,1,101,98,27,85,85,85,42,4,0,51,0,10,8,99,86,86,86,42,51,52,4,0,99,100,10,87,87,87,42,17,28,55,0,13,15,103,88,88,88,42,55,48,17,0,103,96,13,89,89,89,42,7,19,49,1,14,12,97,90,90,90,42,49,54,7,1,97,102,14,91,91,91,42,19,3,41,1,12,59,83,92,92,92,42,41,49,19,1,83,97,12,93,93,93,42,18,17,48,0,58,13,96,94,94,94,42,48,40,18,0,96,82,58,95,95,95,42,0,13,43,0,8,61,87,96,96,96,42,43,51,0,0,87,99,8,97,97,97,42,1,16,50,1,60,27,98,98,98,98,42,50,42,1,1,98,86,60,99,99,99,42,26,25,45,1,39,63,91,100,100,100,42,45,53,26,1,91,101,39,101,101,101,42,22,4,52,0,62,10,100,102,102,102,42,52,44,22,0,100,90,62,103,103,103,42,28,27,47,0,15,65,95,104,104,104,42,47,55,28,0,95,103,15,105,105,105,42,29,7,54,1,64,14,102,106,106,106,42,54,46,29,1,102,94,64,107,107,107,42,73,74,57,2,131,132,106,108,108,108,42,57,56,73,2,106,104,131,109,109,109,42,74,82,58,2,133,146,108,110,110,110,42,58,57,74,2,108,107,133,111,111,111,42,82,85,59,2,146,149,109,112,112,112,42,59,58,82,2,109,108,146,113,113,113,42,85,77,60,2,149,138,111,114,114,114,42,60,59,85,2,111,109,149,115,115,115,42,77,78,61,2,139,140,112,116,116,116,42,61,60,77,2,112,110,139,117,117,117,42,78,86,62,2,141,150,114,118,118,118,42,62,61,78,2,114,113,141,119,119,119,42,86,81,63,2,150,145,115,120,120,120,42,63,62,86,2,115,114,150,121,121,121,42,81,73,56,2,145,130,105,122,122,122,42,56,63,81,2,105,115,145,123,123,123,42,75,72,65,0,135,128,118,124,124,124,42,65,64,75,0,118,116,135,125,125,125,42,72,80,66,0,129,144,120,126,126,126,42,66,65,72,0,120,119,129,127,127,127,42,80,87,67,0,144,151,121,128,128,128,42,67,66,80,0,121,120,144,129,129,129,42,87,79,68,0,151,142,123,130,130,130,42,68,67,87,0,123,121,151,131,131,131,42,79,76,69,0,143,136,124,132,132,132,42,69,68,79,0,124,122,143,133,133,133,42,76,84,70,0,137,148,126,134,134,134,42,70,69,76,0,126,125,137,135,135,135,42,84,83,71,0,148,147,127,136,136,136,42,71,70,84,0,127,126,148,137,137,137,42,83,75,64,0,147,134,117,138,138,138,42,64,71,83,0,117,127,147,139,139,139,42,73,41,42,2,131,81,84,140,140,140,42,42,74,73,2,84,132,131,141,141,141,42,75,43,40,0,135,85,80,142,142,142,42,40,72,75,0,80,128,135,143,143,143,42,77,45,46,2,139,89,92,144,144,144,42,46,78,77,2,92,140,139,145,145,145,42,79,47,44,0,143,93,88,146,146,146,42,44,76,79,0,88,136,143,147,147,147,42,82,50,53,2,146,98,101,148,148,148,42,53,85,82,2,101,149,146,149,149,149,42,84,52,51,0,148,100,99,150,150,150,42,51,83,84,0,99,147,148,151,151,151,42,80,48,55,0,144,96,103,152,152,152,42,55,87,80,0,103,151,144,153,153,153,42,86,54,49,2,150,102,97,154,154,154,42,49,81,86,2,97,145,150,155,155,155,42,81,49,41,2,145,97,83,156,156,156,42,41,73,81,2,83,130,145,157,157,157,42,72,40,48,0,129,82,96,158,158,158,42,48,80,72,0,96,144,129,159,159,159,42,83,51,43,0,147,99,87,160,160,160,42,43,75,83,0,87,134,147,161,161,161,42,74,42,50,2,133,86,98,162,162,162,42,50,82,74,2,98,146,133,163,163,163,42,85,53,45,2,149,101,91,164,164,164,42,45,77,85,2,91,138,149,165,165,165,42,76,44,52,0,137,90,100,166,166,166,42,52,84,76,0,100,148,137,167,167,167,42,87,55,47,0,151,103,95,168,168,168,42,47,79,87,0,95,142,151,169,169,169,42,78,46,54,2,141,94,102,170,170,170,42,54,86,78,2,102,150,141,171,171,171]
}