00001 #ifndef KX_SCALINGINTERPOLATOR 00002 #define KX_SCALINGINTERPOLATOR 00003 00004 #include "KX_IInterpolator.h" 00005 00006 class MT_Vector3; 00007 class KX_IScalarInterpolator; 00008 00009 class KX_ScalingInterpolator : public KX_IInterpolator { 00010 public: 00011 KX_ScalingInterpolator(MT_Vector3& target, 00012 KX_IScalarInterpolator *ipos[]) 00013 : m_target(target) 00014 { 00015 m_ipos[0] = ipos[0]; 00016 m_ipos[1] = ipos[1]; 00017 m_ipos[2] = ipos[2]; 00018 } 00019 00020 virtual void Execute(float currentTime) const; 00021 00022 private: 00023 MT_Vector3& m_target; 00024 KX_IScalarInterpolator *m_ipos[3]; 00025 }; 00026 00027 #endif 00028 00029 00030