Showing the changes to interface/src/raypick/PickScriptingInterface.cpp (1 of 37 files). Show all
Unified · Split
| @@ -179,7 +179,7 @@ std::shared_ptr<PickQuery> PickScriptingInterface::buildRayPick(const QVariantMa · 178 unmodified lines | |||
| 179 | if (propMap["delay"].isValid()) { | 179 | if (propMap["delay"].isValid()) { |
| 180 | // We want to be within 0.1% of the target in <delay> seconds | 180 | // We want to be within 0.1% of the target in <delay> seconds |
| 181 | // https://twitter.com/FreyaHolmer/status/1757836988495847568 | 181 | // https://twitter.com/FreyaHolmer/status/1757836988495847568 |
| 182 | delayHalf = -std::max(propMap["delay"].toFloat(), 0.0f) / log2(0.001); | 182 | delayHalf = -std::max(propMap["delay"].toFloat(), 0.0f) / log2(0.001f); |
| 183 | } | 183 | } |
| 184 | 184 | ||
| 185 | auto rayPick = std::make_shared<RayPick>(position, direction, filter, maxDistance, delayHalf, enabled); | 185 | auto rayPick = std::make_shared<RayPick>(position, direction, filter, maxDistance, delayHalf, enabled); |