Showing the changes to interface/src/scripting/ControllerScriptingInterface.cpp (1 of 9 files). Show all
Unified · Split
| @@ -198,9 +198,9 @@ glm::vec3 ControllerScriptingInterface::getSpatialControlNormal(int controlIndex · 197 unmodified lines | |||
| 198 | if (palmData) { | 198 | if (palmData) { |
| 199 | switch (controlOfPalm) { | 199 | switch (controlOfPalm) { |
| 200 | case PALM_SPATIALCONTROL: | 200 | case PALM_SPATIALCONTROL: |
| 201 | return palmData->getNormal(); | 201 | return palmData->getPalmDirection(); |
| 202 | case TIP_SPATIALCONTROL: | 202 | case TIP_SPATIALCONTROL: |
| 203 | return palmData->getNormal(); // currently the tip doesn't have a unique normal, use the palm normal | 203 | return palmData->getFingerDirection(); |
| 204 | } | 204 | } |
| 205 | } | 205 | } |
| 206 | return glm::vec3(0); // bad index | 206 | return glm::vec3(0); // bad index |