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

Function AnimationTime

trinity/Controllers/Tr2ControllerExpression.cpp:73–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73float AnimationTime( IRoot* ctx, const char* name )
74{
75 EveSpaceObject2Ptr spaceObject = BlueCastPtr( ctx );
76 if( !spaceObject )
77 {
78 return 0;
79 }
80 auto ac = spaceObject->GetAnimationController();
81 if( !ac )
82 {
83 return 0;
84 }
85 return ac->FindAnimationDurationByName( name );
86}
87
88float Random( float min, float max )
89{

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected