-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathPronatorsSupinatorsGroup.js
59 lines (39 loc) · 1.61 KB
/
PronatorsSupinatorsGroup.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
class PronatorsSupinatorsGroup {
constructor(){
// FINGERS FLEX
this.musclesForces_Supination = new MusclesForces('force_supination', 30);
this.musclesForces_PronationHigh = new MusclesForces('force_pronation_high', 30);
this.musclesForces_PronationLow = new MusclesForces('force_pronation_low', 250);
}
addSupinatorsPronatorsToScene(mscene){
// Fingers Flex
this.musclesForces_Supination.addHelpers(mscene);
this.musclesForces_PronationHigh.addHelpers(mscene);
this.musclesForces_PronationLow.addHelpers(mscene);
}
applyForces_Pronation(activationLevel, musclesBonesConstraints){
this.musclesForces_PronationHigh.applyForcesToBones(musclesBonesConstraints.objHumerus,
musclesBonesConstraints.objRadius,
new THREE.Vector3(-40, -20, -70),
new THREE.Vector3(40, 0, 0),
activationLevel,
null
)
this.musclesForces_PronationLow.applyForcesToBones(musclesBonesConstraints.objRadius,
musclesBonesConstraints.objUlna,
new THREE.Vector3( 0, -20, -80),
new THREE.Vector3( -50, -20, -90),
activationLevel,
null
)
}
applyForces_Supination(activationLevel, musclesBonesConstraints) {
this.musclesForces_Supination.applyForcesToBones(musclesBonesConstraints.objHumerus,
musclesBonesConstraints.objRadius,
new THREE.Vector3( 40, -10, -110),
new THREE.Vector3(-10, 0, 50),
activationLevel,
null
)
}
}