TimeTransform_Connector.inl
Go to the documentation of this file.
47 this->cm.log( SRC_INFO, ::iv::Defs::Log::Animation_Events, "Reset target - target changed to ",this->parent->Target(),", warping." );
51 this->cm.log( SRC_INFO, ::iv::Defs::Log::Animation_ConnectorUpdate, "UpdatePass_Down | Warping." );
63 this->cm.log( SRC_INFO, ::iv::Defs::Log::Animation_Events, "Reset target - target changed to ", this->parent->Target(), "." );
68 this->cm.log( SRC_INFO, ::iv::Defs::Log::Animation_ConnectorUpdate, "UpdatePass_Down | Changing target." );
72 if( !this->reset_remainder_distance.has_value() ) // Only consider retargeting due to critical distance deviation when the current_total_time was fetched and has an actual value.
74 auto expected_target_time = this->_transform.Transform( this->current_source_time, this->current_total_time );
75 auto expected_target_distance = std::max( Anim_float( 0.0 ), this->current_total_time - expected_target_time );
79 if( ( this->current_total_time == 0 && current_target_distance != 0 )|| difference / this->current_total_time > DistanceChangeRatioThatCausesReset )
81 this->cm.log( SRC_INFO, iv::Defs::Log::Animation_Events, "Reset target - critical deviation of ", difference, " (", ( difference / this->current_total_time * 100 ) ,"%)." );
93 this->cm.log( SRC_INFO, ::iv::Defs::Log::Animation_Events, "New current_total_time is ", this->current_total_time, "." );
97 auto current_target_time = this->_transform.Transform( this->current_source_time, this->current_total_time );
101 auto next_target_time = this->_transform.Transform( next_source_time, this->current_total_time );
107 this->cm.log( SRC_INFO, ::iv::Defs::Log::Animation_ConnectorUpdate, "UpdatePass_Down | Step ",distance,", child_step ",target_distance,"." );
114 this->current_distance = std::max( Anim_float( 0.0 ), this->current_total_time - this->current_source_time );
125 this->cm.log( SRC_INFO, ::iv::Defs::Log::Animation_ConnectorUpdate, "UpdatePass_Up | Distance ",distance,"." );