History

remove FingerData class and related cleanup

Andrew Meadows committed 12 years ago

Commit 49dedb71 parent 55c92829 files · +63 −274Browse files

Showing the changes to interface/src/scripting/ControllerScriptingInterface.cpp (1 of 9 files). Show all

Unified · Split

interface/src/scripting/ControllerScriptingInterface.cpp+2−2
@@ -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 normal203 return palmData->getFingerDirection();
204 }204 }
205 }205 }
206 return glm::vec3(0); // bad index206 return glm::vec3(0); // bad index