| 384 | |
| 385 | |
| 386 | void PhysicsDriver::angularCallback(const std::string& /*varName*/) { |
| 387 | const fvec3 values = BZDB.evalFVec3(angularVar); |
| 388 | if (!isnan(values.x)) { |
| 389 | angularVel = values.x * float(M_PI * 2.0); |
| 390 | angularPos = values.yz(); |
| 391 | transformAngularPos(); |
| 392 | } |
| 393 | else { |
| 394 | const float value = BZDB.eval(angularVar); |
| 395 | if (!isnan(value)) { |
| 396 | angularVel = value * float(M_PI * 2.0); |
| 397 | } |
| 398 | } |
| 399 | } |
| 400 | |
| 401 | |
| 402 | void PhysicsDriver::radialCallback(const std::string& /*varName*/) { |
no test coverage detected