History

update jointraypicks from joints, dirOffset needs work

SamGondelman committed 9 years ago

Commit 783750a1 parent 916a99c7 files · +43 −12Browse files

Showing the changes to interface/src/raypick/LaserPointerScriptingInterface.cpp (1 of 7 files). Show all

Unified · Split

interface/src/raypick/LaserPointerScriptingInterface.cpp+2−1
@@ -26,12 +26,13 @@ uint32_t LaserPointerScriptingInterface::createLaserPointer(const QVariant& prop · 25 unmodified lines
2626 if (propertyMap["joint"].isValid()) {
2727 QString jointName = propertyMap["joint"].toString();
2828
29+ // x = upward, y = forward, z = lateral
2930 glm::vec3 posOffset = Vectors::ZERO;
3031 if (propertyMap["posOffset"].isValid()) {
3132 posOffset = vec3FromVariant(propertyMap["posOffset"]);
3233 }
3334
34− glm::vec3 dirOffset = Vectors::FRONT;
35+ glm::vec3 dirOffset = Vectors::UP;
3536 if (propertyMap["dirOffset"].isValid()) {
3637 posOffset = vec3FromVariant(propertyMap["dirOffset"]);
3738 }