MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / UpdateL2

Method UpdateL2

ogsr_engine/xrGame/PHDisabling.cpp:121–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119 }
120}
121void CPHDisablingBase::UpdateL2()
122{
123 m_stateL2.Reset();
124 float velocity_param = m_mean_velocity.SumMagnitude() / m_frames;
125 float acceleration_param = m_mean_acceleration.SumMagnitude() / m_frames;
126
127 CheckState(m_stateL2, velocity_param, acceleration_param);
128
129 m_mean_velocity.Reset();
130 m_mean_acceleration.Reset();
131}
132
133void CPHDisablingBase::set_DisableParams(const SOneDDOParams& params) { m_params = params; }
134

Callers

nothing calls this directly

Calls 2

SumMagnitudeMethod · 0.80
ResetMethod · 0.45

Tested by

no test coverage detected