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

Method update

ogsr_engine/xrGame/physics_shell_animated.cpp:12–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10physics_shell_animated::physics_shell_animated(CPhysicsShellHolder* O, bool _update_velocity) : update_velocity(_update_velocity) { create_shell(O); }
11
12bool physics_shell_animated::update(const Fmatrix& xrorm)
13{
14 VERIFY(physics_shell);
15
16 if (update_velocity)
17 physics_shell->AnimToVelocityState(Device.fTimeDelta, default_l_limit * 10, default_w_limit * 10);
18
19 physics_shell->mXFORM.set(xrorm);
20 physics_shell->PKinematics()->CalculateBones();
21 physics_shell->ToAnimBonesPositions(/*mh_unspecified*/);
22 return true;
23}
24
25physics_shell_animated::~physics_shell_animated()
26{ /*

Callers

nothing calls this directly

Calls 4

AnimToVelocityStateMethod · 0.80
ToAnimBonesPositionsMethod · 0.80
setMethod · 0.45
CalculateBonesMethod · 0.45

Tested by

no test coverage detected