--------------------------------------------------------------------------------
| 28 | |
| 29 | // -------------------------------------------------------------------------------- |
| 30 | Vector3* 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 | // -------------------------------------------------------------------------------- |
| 52 | Vector3* Tr2TranslationAdapter::Update( Vector3* in, double time ) |
no test coverage detected