Skip to content

Commit 6cc02e9

Browse files
committed
✨ feat: 添加男性角色的 motion 预设
1 parent 778075e commit 6cc02e9

File tree

3 files changed

+37
-0
lines changed

3 files changed

+37
-0
lines changed

src/constants/touch.tsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,76 +150,92 @@ export const DEFAULT_TOUCH_ACTION_CONFIG_MALE: TouchActionConfig = {
150150
{
151151
expression: VRMExpressionPresetName.Neutral,
152152
text: 'touch.maleAction.headAction.neutralA',
153+
motion: MotionPresetName.MaleHappy,
153154
},
154155
{
155156
expression: VRMExpressionPresetName.Neutral,
156157
text: 'touch.maleAction.headAction.neutralB',
158+
motion: MotionPresetName.MaleHappy,
157159
},
158160
{
159161
expression: VRMExpressionPresetName.Neutral,
160162
text: 'touch.maleAction.headAction.neutralC',
163+
motion: MotionPresetName.MaleHappy,
161164
},
162165
],
163166
[TouchAreaEnum.Arm]: [
164167
{
165168
expression: VRMExpressionPresetName.Neutral,
166169
text: 'touch.maleAction.armAction.neutralA',
170+
motion: MotionPresetName.MaleHappy,
167171
},
168172
{
169173
expression: VRMExpressionPresetName.Neutral,
170174
text: 'touch.maleAction.armAction.neutralB',
175+
motion: MotionPresetName.MaleHappy,
171176
},
172177
{
173178
expression: VRMExpressionPresetName.Neutral,
174179
text: 'touch.maleAction.armAction.neutralC',
180+
motion: MotionPresetName.MaleHappy,
175181
},
176182
],
177183
[TouchAreaEnum.Leg]: [
178184
{
179185
expression: VRMExpressionPresetName.Neutral,
180186
text: 'touch.maleAction.legAction.neutralA',
187+
motion: MotionPresetName.MaleHappy,
181188
},
182189
{
183190
expression: VRMExpressionPresetName.Neutral,
184191
text: 'touch.maleAction.legAction.neutralB',
192+
motion: MotionPresetName.MaleHappy,
185193
},
186194
{
187195
expression: VRMExpressionPresetName.Angry,
188196
text: 'touch.maleAction.legAction.angryA',
197+
motion: MotionPresetName.MaleAngry,
189198
},
190199
],
191200
[TouchAreaEnum.Chest]: [
192201
{
193202
expression: VRMExpressionPresetName.Neutral,
194203
text: 'touch.maleAction.chestAction.neutralA',
204+
motion: MotionPresetName.MaleHappy,
195205
},
196206
{
197207
expression: VRMExpressionPresetName.BlinkLeft,
198208
text: 'touch.maleAction.chestAction.blinkLeftA',
209+
motion: MotionPresetName.MaleHappy,
199210
},
200211
],
201212
[TouchAreaEnum.Belly]: [
202213
{
203214
expression: VRMExpressionPresetName.Neutral,
204215
text: 'touch.maleAction.bellyAction.neutralA',
216+
motion: MotionPresetName.MaleHappy,
205217
},
206218
{
207219
expression: VRMExpressionPresetName.Happy,
208220
text: 'touch.maleAction.bellyAction.happyA',
221+
motion: MotionPresetName.MaleHappy,
209222
},
210223
{
211224
expression: VRMExpressionPresetName.Neutral,
212225
text: 'touch.maleAction.bellyAction.neutralB',
226+
motion: MotionPresetName.MaleHappy,
213227
},
214228
],
215229
[TouchAreaEnum.Buttocks]: [
216230
{
217231
expression: VRMExpressionPresetName.Surprised,
218232
text: 'touch.maleAction.buttocksAction.surprisedA',
233+
motion: MotionPresetName.MaleAngry,
219234
},
220235
{
221236
expression: VRMExpressionPresetName.Angry,
222237
text: 'touch.maleAction.buttocksAction.angryA',
238+
motion: MotionPresetName.MaleAngry,
223239
},
224240
],
225241
};

src/libs/emoteController/motionPresetMap.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ export enum MotionPresetName {
1616
FemaleCoverChest = 'female_cover_chest',
1717
FemaleStand = 'female_stand',
1818
FemaleStandMix = 'female_stand_mix',
19+
MaleHappy = 'male_happy',
20+
MaleAngry = 'male_angry',
1921
}
2022

2123
export const motionPresetMap: Record<
@@ -36,11 +38,21 @@ export const motionPresetMap: Record<
3638
type: MotionFileType.FBX,
3739
name: 'Female/Happy',
3840
},
41+
male_happy: {
42+
url: 'https://r2.vidol.chat/animations/c9ccf37e-b96c-11e4-a802-0aaa78deedf9.fbx',
43+
type: MotionFileType.FBX,
44+
name: 'Male/Happy',
45+
},
3946
female_angry: {
4047
url: 'https://r2.vidol.chat/animations/c9c98b02-b96c-11e4-a802-0aaa78deedf9.fbx',
4148
type: MotionFileType.FBX,
4249
name: 'Female/Angry',
4350
},
51+
male_angry: {
52+
url: 'https://r2.vidol.chat/animations/c9c916ce-b96c-11e4-a802-0aaa78deedf9.fbx',
53+
type: MotionFileType.FBX,
54+
name: 'Male/Angry',
55+
},
4456
female_greeting: {
4557
url: 'https://r2.vidol.chat/animations/c9c7996a-b96c-11e4-a802-0aaa78deedf9.fbx',
4658
type: MotionFileType.FBX,

src/locales/default/role.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,11 @@ export default {
119119
relaxedA: '醒醒,我们之间没有结果的!',
120120
relaxedB: '讨厌!我可要生气啦!',
121121
},
122+
buttocksAction: {
123+
surprisedA: '啊!你在摸哪里?!',
124+
angryA: '你这个变态!离我远点!',
125+
embarrassedA: '呜...不要这样...',
126+
},
122127
},
123128
maleAction: {
124129
headAction: {
@@ -145,6 +150,10 @@ export default {
145150
happyA: '别挠痒痒,小心我笑出腹肌',
146151
neutralB: '看到我这团腹肌了吗?它们只是藏得比较深罢了',
147152
},
153+
buttocksAction: {
154+
surprisedA: '嘿!注意你的手!',
155+
angryA: '再碰我就揍你了!',
156+
},
148157
},
149158
},
150159
info: {

0 commit comments

Comments
 (0)