feat(edutainment): refresh baby object match flow

This commit is contained in:
2026-05-16 11:29:28 +08:00
parent 49ffa6b901
commit 45daca3647
24 changed files with 6616 additions and 659 deletions

View File

@@ -27,6 +27,8 @@ export type MocapBodyJointsInput = {
rightShoulder?: MocapPointInput | null;
leftElbow?: MocapPointInput | null;
rightElbow?: MocapPointInput | null;
leftWrist?: MocapPointInput | null;
rightWrist?: MocapPointInput | null;
};
export type MocapInputCommand = {
@@ -289,6 +291,14 @@ function normalizeBodyJointName(name: unknown) {
return 'rightElbow' as const;
}
if (normalized === 'left_wrist' || normalized === 'leftwrist') {
return 'leftWrist' as const;
}
if (normalized === 'right_wrist' || normalized === 'rightwrist') {
return 'rightWrist' as const;
}
return null;
}