@kvmet/beefwife 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/LICENSE +373 -0
- package/README.md +509 -2
- package/beefwife.example.json +260 -0
- package/beefwife.js +3182 -0
- package/beefwife.min.js +4 -0
- package/package.json +72 -4
- package/samples/bounding.json +260 -0
- package/samples/chevron-guy.json +270 -0
- package/samples/long-girl.json +233 -0
- package/samples/peristaltic.json +260 -0
- package/samples/reticulating.json +260 -0
- package/samples/slow-guy.json +233 -0
- package/samples/undulating.json +260 -0
- package/src/atlas.mjs +285 -0
- package/src/beefwife.mjs +540 -0
- package/src/bend.mjs +172 -0
- package/src/body.mjs +501 -0
- package/src/carry.mjs +60 -0
- package/src/chain.mjs +83 -0
- package/src/descriptor.mjs +426 -0
- package/src/display.mjs +65 -0
- package/src/drive.mjs +77 -0
- package/src/geometry.mjs +240 -0
- package/src/global.mjs +14 -0
- package/src/graphics.mjs +715 -0
- package/src/legs.mjs +223 -0
- package/src/limits.mjs +19 -0
- package/src/model.mjs +267 -0
- package/src/pixi.mjs +11 -0
- package/src/schema.mjs +243 -0
- package/src/skin.mjs +313 -0
- package/src/tables.mjs +109 -0
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"name": "beefwife",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"materials": {
|
|
6
|
+
"body": {
|
|
7
|
+
"velocityRetention": 0.06928872574536875,
|
|
8
|
+
"jointCorrection": 0.5,
|
|
9
|
+
"linkCorrection": 0.6,
|
|
10
|
+
"grip": {
|
|
11
|
+
"forward": 0.05,
|
|
12
|
+
"backward": 0.62,
|
|
13
|
+
"lateral": 0.91
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"shapes": {
|
|
18
|
+
"bodyPlate": {
|
|
19
|
+
"path": "M -4 -4 L 0 -5.5 L 4.5 -4 L 6 0 L 4.5 4 L 0 5 L -4 3.5 L -5.5 0 Z"
|
|
20
|
+
},
|
|
21
|
+
"eye": {
|
|
22
|
+
"path": "M -2 -2 L 0 -3 L 2.5 -2 L 2.5 0.5 L 0 1.5 L -2.5 0 Z"
|
|
23
|
+
},
|
|
24
|
+
"foot": {
|
|
25
|
+
"path": "M -1.2 -0.65 L 0.65 -0.9 L 1.2 -0.35 L 1.2 0.35 L 0.65 0.9 L -1.2 0.65 Z"
|
|
26
|
+
},
|
|
27
|
+
"headPlate": {
|
|
28
|
+
"path": "M -5.5 -2 L 2 -2 L 3.5 -1 L 3.5 1 L 2 2 L -5.5 2 Z"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"paints": {
|
|
32
|
+
"eye": {
|
|
33
|
+
"fill": "#050505",
|
|
34
|
+
"stroke": {
|
|
35
|
+
"colour": "#ffffff",
|
|
36
|
+
"width": 3.1
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"foot": {
|
|
40
|
+
"fill": "#5b6b7a",
|
|
41
|
+
"stroke": {
|
|
42
|
+
"colour": "#ff0000",
|
|
43
|
+
"width": 3.1
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"leg": {
|
|
47
|
+
"fill": "#39424e",
|
|
48
|
+
"stroke": null
|
|
49
|
+
},
|
|
50
|
+
"ribbon": {
|
|
51
|
+
"fill": "#7a1414",
|
|
52
|
+
"stroke": null
|
|
53
|
+
},
|
|
54
|
+
"shell": {
|
|
55
|
+
"fill": "#ff0000",
|
|
56
|
+
"stroke": {
|
|
57
|
+
"colour": "#ff0000",
|
|
58
|
+
"width": 3.1
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"gait": {
|
|
64
|
+
"cyclesPerSecond": 1.35,
|
|
65
|
+
"phaseLagRadiansPerPixel": 0.0391666666667,
|
|
66
|
+
"bend": {
|
|
67
|
+
"amplitude": 0.84,
|
|
68
|
+
"harmonic": 1
|
|
69
|
+
},
|
|
70
|
+
"thrust": {
|
|
71
|
+
"acceleration": 0,
|
|
72
|
+
"harmonic": 1,
|
|
73
|
+
"phaseOffset": 0.36,
|
|
74
|
+
"dutyCycle": 0.5
|
|
75
|
+
},
|
|
76
|
+
"gather": {
|
|
77
|
+
"amplitude": 0.12,
|
|
78
|
+
"harmonic": 2,
|
|
79
|
+
"phaseOffset": 0
|
|
80
|
+
},
|
|
81
|
+
"contact": {
|
|
82
|
+
"amplitude": 0.97,
|
|
83
|
+
"harmonic": 1,
|
|
84
|
+
"phaseOffset": -0.25,
|
|
85
|
+
"dutyCycle": 0.5
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"chain": {
|
|
89
|
+
"physics": {
|
|
90
|
+
"autoLift": {
|
|
91
|
+
"amount": 0.59,
|
|
92
|
+
"share": 0.4,
|
|
93
|
+
"rate": 12
|
|
94
|
+
},
|
|
95
|
+
"steering": {
|
|
96
|
+
"gain": 0.6,
|
|
97
|
+
"limit": 0.5,
|
|
98
|
+
"rate": 6
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"breathing": 0,
|
|
102
|
+
"sections": {
|
|
103
|
+
"head": {
|
|
104
|
+
"chunks": 2,
|
|
105
|
+
"spacing": 12,
|
|
106
|
+
"material": "body",
|
|
107
|
+
"motionScale": {
|
|
108
|
+
"bend": 0,
|
|
109
|
+
"thrust": 1,
|
|
110
|
+
"gather": 1,
|
|
111
|
+
"contact": 1
|
|
112
|
+
},
|
|
113
|
+
"profile": {
|
|
114
|
+
"ribbonWidth": {
|
|
115
|
+
"start": 2.5,
|
|
116
|
+
"end": 4.5
|
|
117
|
+
},
|
|
118
|
+
"plateScale": {
|
|
119
|
+
"start": 1,
|
|
120
|
+
"end": 1
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"trunk": {
|
|
125
|
+
"chunks": 16,
|
|
126
|
+
"spacing": 12,
|
|
127
|
+
"material": "body",
|
|
128
|
+
"motionScale": {
|
|
129
|
+
"bend": 1,
|
|
130
|
+
"thrust": 1,
|
|
131
|
+
"gather": 1,
|
|
132
|
+
"contact": 1
|
|
133
|
+
},
|
|
134
|
+
"profile": {
|
|
135
|
+
"ribbonWidth": {
|
|
136
|
+
"start": 4.5,
|
|
137
|
+
"end": 4.5
|
|
138
|
+
},
|
|
139
|
+
"plateScale": {
|
|
140
|
+
"start": 1,
|
|
141
|
+
"end": 1
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"tail": {
|
|
146
|
+
"chunks": 9,
|
|
147
|
+
"spacing": 12,
|
|
148
|
+
"material": "body",
|
|
149
|
+
"motionScale": {
|
|
150
|
+
"bend": 1,
|
|
151
|
+
"thrust": 1,
|
|
152
|
+
"gather": 1,
|
|
153
|
+
"contact": 1
|
|
154
|
+
},
|
|
155
|
+
"profile": {
|
|
156
|
+
"ribbonWidth": {
|
|
157
|
+
"start": 4.5,
|
|
158
|
+
"end": 0
|
|
159
|
+
},
|
|
160
|
+
"plateScale": {
|
|
161
|
+
"start": 1,
|
|
162
|
+
"end": 0.55
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
"skin": {
|
|
168
|
+
"loadScale": 0.35,
|
|
169
|
+
"ribbon": {
|
|
170
|
+
"paint": "ribbon"
|
|
171
|
+
},
|
|
172
|
+
"plates": [
|
|
173
|
+
{
|
|
174
|
+
"id": "head-shell",
|
|
175
|
+
"shape": "headPlate",
|
|
176
|
+
"paint": "shell",
|
|
177
|
+
"at": {
|
|
178
|
+
"section": "head",
|
|
179
|
+
"from": "head",
|
|
180
|
+
"offset": 0
|
|
181
|
+
},
|
|
182
|
+
"repeat": {
|
|
183
|
+
"count": 1,
|
|
184
|
+
"step": 1
|
|
185
|
+
},
|
|
186
|
+
"scale": 1
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"id": "body-shell",
|
|
190
|
+
"shape": "bodyPlate",
|
|
191
|
+
"paint": "shell",
|
|
192
|
+
"at": {
|
|
193
|
+
"section": null,
|
|
194
|
+
"from": "head",
|
|
195
|
+
"offset": 1
|
|
196
|
+
},
|
|
197
|
+
"repeat": {
|
|
198
|
+
"count": null,
|
|
199
|
+
"step": 1
|
|
200
|
+
},
|
|
201
|
+
"scale": 1
|
|
202
|
+
}
|
|
203
|
+
],
|
|
204
|
+
"ornaments": [
|
|
205
|
+
{
|
|
206
|
+
"id": "eyes",
|
|
207
|
+
"shape": "eye",
|
|
208
|
+
"paint": "eye",
|
|
209
|
+
"at": {
|
|
210
|
+
"section": "head",
|
|
211
|
+
"from": "head",
|
|
212
|
+
"offset": 1
|
|
213
|
+
},
|
|
214
|
+
"repeat": {
|
|
215
|
+
"count": 1,
|
|
216
|
+
"step": 1
|
|
217
|
+
},
|
|
218
|
+
"side": "both",
|
|
219
|
+
"layer": "over",
|
|
220
|
+
"offset": {
|
|
221
|
+
"forward": 0,
|
|
222
|
+
"outward": 8
|
|
223
|
+
},
|
|
224
|
+
"angleDegrees": 52,
|
|
225
|
+
"scale": 1,
|
|
226
|
+
"source": 0.4,
|
|
227
|
+
"react": 1,
|
|
228
|
+
"recover": 30,
|
|
229
|
+
"wobble": 0.85
|
|
230
|
+
}
|
|
231
|
+
]
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
"legs": {
|
|
235
|
+
"section": "trunk",
|
|
236
|
+
"pairs": 0,
|
|
237
|
+
"reach": 17,
|
|
238
|
+
"spread": 0.78,
|
|
239
|
+
"lead": 0.5,
|
|
240
|
+
"fold": 0.5,
|
|
241
|
+
"jointBend": 1,
|
|
242
|
+
"jointLean": 0,
|
|
243
|
+
"jointLeanCenter": 0,
|
|
244
|
+
"sidePhase": 1,
|
|
245
|
+
"liftThreshold": 0.45,
|
|
246
|
+
"swingCycles": 0.21600000000000003,
|
|
247
|
+
"swingArc": 0.3,
|
|
248
|
+
"jitter": 0.3,
|
|
249
|
+
"skin": {
|
|
250
|
+
"limbPaint": "leg",
|
|
251
|
+
"limbWidth": 2.4,
|
|
252
|
+
"foot": {
|
|
253
|
+
"shape": "foot",
|
|
254
|
+
"paint": "foot",
|
|
255
|
+
"scale": 3,
|
|
256
|
+
"plantedScale": 1.35
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|