MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / poseGesturing

Method poseGesturing

web/observatory/js/pose-system.js:413–430  ·  view source on GitHub ↗
(px, pz, elapsed, gestureType, intensity)

Source from the content-addressed store, hash-verified

411 // ---- Gesturing ---------------------------------------------------------
412
413 poseGesturing(px, pz, elapsed, gestureType, intensity) {
414 const base = this.poseStanding(px, pz, elapsed, 0, 0);
415 if (intensity <= 0) return base;
416 const gt = elapsed;
417
418 switch (gestureType) {
419 case 'wave':
420 return this._gestureWave(base, px, pz, gt, intensity);
421 case 'swipe_left':
422 return this._gestureSwipe(base, px, pz, gt, intensity);
423 case 'circle':
424 return this._gestureCircle(base, px, pz, gt, intensity);
425 case 'point':
426 return this._gesturePoint(base, px, pz, gt, intensity);
427 default:
428 return base;
429 }
430 }
431
432 // Wave: fluid hand oscillation, elbow pivot, slight shoulder raise
433

Callers 1

generateKeypointsMethod · 0.95

Calls 5

poseStandingMethod · 0.95
_gestureWaveMethod · 0.95
_gestureSwipeMethod · 0.95
_gestureCircleMethod · 0.95
_gesturePointMethod · 0.95

Tested by

no test coverage detected