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

Function RestoreVelocityState

ogsr_engine/xrGame/PHActivationShape.cpp:79–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79void RestoreVelocityState(V_PH_WORLD_STATE& state)
80{
81 V_PH_WORLD_STATE::iterator i = state.begin(), e = state.end();
82 for (; e != i; ++i)
83 {
84 CPHSynchronize& sync = *i->first;
85 SPHNetState& old_s = i->second;
86 SPHNetState new_s;
87 sync.get_State(new_s);
88 new_s.angular_vel.set(old_s.angular_vel);
89 new_s.linear_vel.set(old_s.linear_vel);
90 new_s.enabled = old_s.enabled;
91 sync.set_State(new_s);
92 }
93}
94
95CPHActivationShape::CPHActivationShape()
96{

Callers 1

ActivateMethod · 0.85

Calls 5

beginMethod · 0.45
endMethod · 0.45
get_StateMethod · 0.45
setMethod · 0.45
set_StateMethod · 0.45

Tested by

no test coverage detected