# Unigine::AnimationChannelIVec3 Class (CPP) **Header:** #include **Inherits from:** AnimationChannel This channel animates a three-component integer vector over time. It is one row of a [sequence](../../../../api/library/animations/timeline/class.animationsequence_cpp.md), while everything the channels share, such as the animated parameter, the binding and the clips, comes from the [AnimationChannel](../../../../api/library/animations/timeline/class.animationchannel_cpp.md) base class. ## AnimationChannelIVec3 Class ### Members ## Math:: ivec3 getDefaultValue () const Returns the current value the channel falls back to where it has no keys of its own. ### Return value Current value the channel falls back to ## void setCurveX ( const Ptr < AnimationCurveInt >& x ) Sets a new curve of the X component. ### Arguments - *const [Ptr](../../../../api/library/common/class.ptr_cpp.md)<[AnimationCurveInt](../../../../api/library/animations/timeline/class.animationcurveint_cpp.md)>&* **x** - The curve of the X component ## Ptr < AnimationCurveInt > getCurveX () const Returns the current curve of the X component. ### Return value Current curve of the X component ## void setCurveY ( const Ptr < AnimationCurveInt >& y ) Sets a new curve of the Y component. ### Arguments - *const [Ptr](../../../../api/library/common/class.ptr_cpp.md)<[AnimationCurveInt](../../../../api/library/animations/timeline/class.animationcurveint_cpp.md)>&* **y** - The curve of the Y component ## Ptr < AnimationCurveInt > getCurveY () const Returns the current curve of the Y component. ### Return value Current curve of the Y component ## void setCurveZ ( const Ptr < AnimationCurveInt >& z ) Sets a new curve of the Z component. ### Arguments - *const [Ptr](../../../../api/library/common/class.ptr_cpp.md)<[AnimationCurveInt](../../../../api/library/animations/timeline/class.animationcurveint_cpp.md)>&* **z** - The curve of the Z component ## Ptr < AnimationCurveInt > getCurveZ () const Returns the current curve of the Z component. ### Return value Current curve of the Z component --- ## AnimationChannelIVec3 ( AnimParams::PARAM param ) Constructor. Creates a channel that animates the specified parameter. ### Arguments - *AnimParams::PARAM* **param** - Parameter to be animated by the channel. Identifiers are looked up through the [Animations](../../../../api/library/animations/class.animations_cpp.md) class rather than written out by hand. ## AnimationChannelIVec3 ( AnimParams::PARAM param , int param_index ) Constructor. Creates a channel that animates the specified parameter. ### Arguments - *AnimParams::PARAM* **param** - Parameter to be animated by the channel. Identifiers are looked up through the [Animations](../../../../api/library/animations/class.animations_cpp.md) class rather than written out by hand. - *int* **param_index** - Slot of the parameter for parameters that come as an array, such as a surface or a bone. ## AnimationChannelIVec3 ( AnimParams::PARAM param , const char * param_name ) Constructor. Creates a channel that animates the specified parameter. ### Arguments - *AnimParams::PARAM* **param** - Parameter to be animated by the channel. Identifiers are looked up through the [Animations](../../../../api/library/animations/class.animations_cpp.md) class rather than written out by hand. - *const char ** **param_name** - Name that addresses the parameter when a number is not enough, such as the name of a property parameter or of a surface. ## AnimationChannelIVec3 ( const char * param ) Constructor. Creates a channel that animates the specified parameter. ### Arguments - *const char ** **param** - Name of the parameter to be animated by the channel. ## AnimationChannelIVec3 ( const char * param , int param_index ) Constructor. Creates a channel that animates the specified parameter. ### Arguments - *const char ** **param** - Name of the parameter to be animated by the channel. - *int* **param_index** - Slot of the parameter for parameters that come as an array, such as a surface or a bone. ## AnimationChannelIVec3 ( const char * param , const char * param_name ) Constructor. Creates a channel that animates the specified parameter. ### Arguments - *const char ** **param** - Name of the parameter to be animated by the channel. - *const char ** **param_name** - Name that addresses the parameter when a number is not enough, such as the name of a property parameter or of a surface. ## void assignFrom ( const Ptr < AnimationChannelIVec3 > & channel ) Copies the content of the specified channel into this one. ### Arguments - *const [Ptr](../../../../api/library/common/class.ptr_cpp.md)<[AnimationChannelIVec3](../../../../api/library/animations/timeline/class.animationchannelivec3_cpp.md)> &* **channel** - Source channel to copy the content from. ## Math:: ivec3 getValueByTime ( float time ) Returns the value the channel holds at the given moment. ### Arguments - *float* **time** - Moment to be sampled, in seconds. ### Return value Value the channel holds at the specified moment. ## Math:: ivec3 getValueByNormalizedTime ( float normalized_time ) Returns the value the channel holds at the given moment, addressed as a share of its time span rather than in seconds. ### Arguments - *float* **normalized_time** - Moment to be sampled, given as a share of the channel time span in the [0.0f, 1.0f] range. ### Return value Value the channel holds at the specified moment. ## void addValue ( float time , const Math:: ivec3 & value , AnimationCurve::KEY_TYPE type = AnimationCurve::KEY_TYPE_LINEAR ) Adds a key holding the specified value. ### Arguments - *float* **time** - Moment the key is to sit at, in seconds. - *const Math::[ivec3](../../../../api/library/math/class.ivec3_cpp.md) &* **value** - Value to be held by the key. - *[AnimationCurve::KEY_TYPE](../../../../api/library/animations/timeline/class.animationcurve_cpp.md#KEY_TYPE)* **type** - Interpolation type of the key. The default value is [KEY_TYPE_LINEAR](../../../../api/library/animations/timeline/class.animationcurve_cpp.md#KEY_TYPE_LINEAR).