MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / angularCallback

Method angularCallback

src/game/PhysicsDriver.cpp:386–399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

384
385
386void 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
402void PhysicsDriver::radialCallback(const std::string& /*varName*/) {

Callers 1

staticAngularCallbackMethod · 0.80

Calls 3

evalFVec3Method · 0.80
evalMethod · 0.80
isnanFunction · 0.50

Tested by

no test coverage detected