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

Method GetEveLocatorTransform

trinity/Eve/SpaceObject/EveSpaceObject2.cpp:1045–1072  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1043}
1044
1045Matrix EveSpaceObject2::GetEveLocatorTransform( const char* name ) const
1046{
1047 EveLocator2* locator = nullptr;
1048 for( auto it = begin( m_locators ); it != end( m_locators ); ++it )
1049 {
1050 if( strcmp( ( *it )->GetName(), name ) == 0 )
1051 {
1052 locator = *it;
1053 break;
1054 }
1055 }
1056
1057 if( !locator )
1058 {
1059 return IdentityMatrix();
1060 }
1061
1062 if( m_animationUpdater )
1063 {
1064 Matrix result;
1065 if( m_animationUpdater->GetBoneWorldTransform( locator->GetName(), result ) )
1066 {
1067 return result;
1068 }
1069 }
1070
1071 return locator->GetTransform();
1072}
1073
1074bool EveSpaceObject2::HasTransparentBatches()
1075{

Callers

nothing calls this directly

Calls 5

GetBoneWorldTransformMethod · 0.80
beginFunction · 0.50
endFunction · 0.50
GetNameMethod · 0.45
GetTransformMethod · 0.45

Tested by

no test coverage detected