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

Method Update

trinity/Curves/Tr2TranslationAdapter.cpp:30–49  ·  view source on GitHub ↗

--------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

28
29// --------------------------------------------------------------------------------
30Vector3* Tr2TranslationAdapter::Update( Vector3* in, Be::Time time )
31{
32 if( m_start == 0 )
33 {
34 m_start = time;
35 }
36 if( m_curve )
37 {
38 m_curve->Update( &m_currentValue, GetLocalTime( time ) );
39 }
40 else
41 {
42 m_currentValue = m_value;
43 }
44
45 TriVectorRotateQuaternion( &m_currentValue, &m_currentValue, &m_rotationOffset );
46
47 *in = m_currentValue;
48 return in;
49}
50
51// --------------------------------------------------------------------------------
52Vector3* Tr2TranslationAdapter::Update( Vector3* in, double time )

Callers 1

UpdateValueMethod · 0.45

Calls 1

Tested by

no test coverage detected