j建设银行信用卡网站,购物网站推广方案,WordPress副标题不显示,长春网络公司esmini的LongSpeedAction#xff0c;如果shape设置为step的话#xff0c;DynamicsDimension实际就无效了#xff0c;
因为step的意思就是直接设置#xff0c;在LongSpeedAction的Start过程中设置完就结束了#xff0c;Step就不在
执行。
如果我们在step的情况下#x…esmini的LongSpeedAction如果shape设置为step的话DynamicsDimension实际就无效了
因为step的意思就是直接设置在LongSpeedAction的Start过程中设置完就结束了Step就不在
执行。
如果我们在step的情况下想让LongSpeedAction持续一段时间再结束可以这么修改。
在Start中去掉OSCAction::End() if (transition_dynamics_.shape_ DynamicsShape::STEP){object_-SetSpeed(target_-GetValue());if (!(target_-type_ Target::TargetType::RELATIVE ((TargetRelative*)target_)-continuous_ true)){//OSCAction::End();}}
在Step中加上这一句 if (transition_dynamics_.shape_ DynamicsShape::STEP transition_dynamics_.dimension_ DynamicsDimension::TIME){elapsed_ dt;if (elapsed_ transition_dynamics_.target_value_)OSCAction::End();return;}