MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / getAngularSpeed

Method getAngularSpeed

game/state/city/vehicle.cpp:3310–3316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3308 return this->type->getSpeed(et.begin(), et.end());
3309}
3310float Vehicle::getAngularSpeed() const
3311{
3312 // FIXME: Proper turning speed
3313 // This value was hand-made to look proper on annihilators
3314 constexpr float TURNING_MULT = (float)M_PI / (float)TICK_SCALE / VELOCITY_SCALE_CITY_X / 1.5f;
3315 return getSpeed() * TURNING_MULT;
3316}
3317
3318int Vehicle::getMaxConstitution() const
3319{

Callers 2

updateMethod · 0.95
updateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected