MCPcopy Create free account
hub / github.com/carbonengine/trinity / PrePhysicsUpdate

Method PrePhysicsUpdate

trinity/Tr2SkinnedObject.cpp:60–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60void Tr2SkinnedObject::PrePhysicsUpdate( Be::Time time )
61{
62 CCP_STATS_ZONE( __FUNCTION__ );
63
64 const Be::Time deltaTime = time - m_lastUpdateTime;
65 if( TimeAsFloat( deltaTime ) < m_updatePeriod )
66 {
67 return;
68 }
69
70 if( m_visualModel == NULL || m_visualModel->GetSkeleton() == NULL )
71 {
72 return;
73 }
74
75 if( m_animationUpdater != NULL )
76 {
77 m_animationUpdater->PrePhysicsAnimation( time, m_transform );
78 }
79
80 return;
81}
82
83void Tr2SkinnedObject::PostPhysicsUpdate( Be::Time time, Tr2ApexScene* apexScene )
84{

Callers

nothing calls this directly

Calls 2

GetSkeletonMethod · 0.45
PrePhysicsAnimationMethod · 0.45

Tested by

no test coverage detected