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
155155 auto sensorToWorld = myAvatar->getSensorToWorldMatrix();
156156 auto worldToSensor = glm::inverse(sensorToWorld);
157157 auto sensorStart = ::transformPoint(worldToSensor, worldStart);
158− auto sensorDirection = ::transformVectorFast(worldToSensor, direction); // wrong
159−
160− qDebug() << __FUNCTION__ << "worldStart:" << worldStart << "sensorStart:" << sensorStart;
161− qDebug() << __FUNCTION__ << "direction:" << direction << "sensorDirection:" << sensorDirection;
162− qDebug() << __FUNCTION__ << "enabled:" << enabled;
163−
158+ auto sensorDirection = ::transformVectorFast(worldToSensor, direction);
164159
165160 return qApp->getActiveDisplayPlugin()->setExtraLaser(enabled ? DisplayPlugin::HandLaserMode::Overlay : DisplayPlugin::HandLaserMode::None,
166161 color, sensorStart, sensorDirection);