Showing the changes to interface/src/scripting/HMDScriptingInterface.cpp (1 of 3 files). Show all
Unified · Split
| @@ -155,12 +155,7 @@ bool HMDScriptingInterface::setExtraLaser(const glm::vec3& worldStart, bool enab · 154 unmodified lines | ||
| 155 | 155 | auto sensorToWorld = myAvatar->getSensorToWorldMatrix(); |
| 156 | 156 | auto worldToSensor = glm::inverse(sensorToWorld); |
| 157 | 157 | 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); | |
| 164 | 159 | |
| 165 | 160 | return qApp->getActiveDisplayPlugin()->setExtraLaser(enabled ? DisplayPlugin::HandLaserMode::Overlay : DisplayPlugin::HandLaserMode::None, |
| 166 | 161 | color, sensorStart, sensorDirection); |