History

gak

Brad Hefta-Gaub committed 10 years ago

Commit a25d5031 parent 0f896793 files · +5 −39Browse files

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

Unified · Split

interface/src/scripting/HMDScriptingInterface.cpp+1−6
@@ -155,12 +155,7 @@ bool HMDScriptingInterface::setExtraLaser(const glm::vec3& worldStart, bool enab · 154 unmodified lines
155 auto sensorToWorld = myAvatar->getSensorToWorldMatrix();155 auto sensorToWorld = myAvatar->getSensorToWorldMatrix();
156 auto worldToSensor = glm::inverse(sensorToWorld);156 auto worldToSensor = glm::inverse(sensorToWorld);
157 auto sensorStart = ::transformPoint(worldToSensor, worldStart);157 auto sensorStart = ::transformPoint(worldToSensor, worldStart);
158 auto sensorDirection = ::transformVectorFast(worldToSensor, direction); // wrong158 auto sensorDirection = ::transformVectorFast(worldToSensor, direction);
159
160 qDebug() << __FUNCTION__ << "worldStart:" << worldStart << "sensorStart:" << sensorStart;
161 qDebug() << __FUNCTION__ << "direction:" << direction << "sensorDirection:" << sensorDirection;
162 qDebug() << __FUNCTION__ << "enabled:" << enabled;
163
164 159
165 return qApp->getActiveDisplayPlugin()->setExtraLaser(enabled ? DisplayPlugin::HandLaserMode::Overlay : DisplayPlugin::HandLaserMode::None,160 return qApp->getActiveDisplayPlugin()->setExtraLaser(enabled ? DisplayPlugin::HandLaserMode::Overlay : DisplayPlugin::HandLaserMode::None,
166 color, sensorStart, sensorDirection);161 color, sensorStart, sensorDirection);