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

Method UpdateL1

ogsr_engine/xrGame/PHDisabling.cpp:146–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144 m_mean_acceleration.UpdatePrevious(*(Fvector*)velocity);
145}
146void CPHDisablingTranslational::UpdateL1()
147{
148 m_stateL1.Reset();
149 dBodyID body = get_body();
150 const dReal* position = dBodyGetPosition(body);
151 const dReal* velocity = dBodyGetLinearVel(body);
152
153 CPHDisablingBase::UpdateValues(*(Fvector*)position, *(Fvector*)velocity);
154 // float velocity_param = m_mean_velocity .Update(* (Fvector*) position) ;
155 // float acceleration_param = m_mean_acceleration .Update(* (Fvector*) velocity) ;
156 // CheckState (m_stateL1,velocity_param*m_frames,acceleration_param*m_frames) ;
157}
158
159void CPHDisablingTranslational::set_DisableParams(const SAllDDOParams& params)
160{

Callers

nothing calls this directly

Calls 6

dBodyGetPositionFunction · 0.85
dBodyGetLinearVelFunction · 0.85
dBodyGetRotationFunction · 0.85
dBodyGetAngularVelFunction · 0.85
ResetMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected