当前位置:网站首页>Esmini longspeedaction modification
Esmini longspeedaction modification
2022-07-05 07:35:00 【sukhoi27smk】
esmini Of LongSpeedAction, If shape Set to step Words ,DynamicsDimension Actually, it is invalid ,
because step It means setting directly , stay LongSpeedAction Of Start The process is over after setting ,Step It's not there
perform .
If we were step Under the circumstances , Want to make LongSpeedAction Last for a period of time before ending , It can be modified like this .
stay Start Removing the OSCAction::End()
if (transition_dynamics_.shape_ == DynamicsShape::STEP)
{
object_->SetSpeed(target_->GetValue());
if (!(target_->type_ == Target::TargetType::RELATIVE && ((TargetRelative*)target_)->continuous_ == true))
{
//OSCAction::End();
}
}
stay Step Add this sentence to
if (transition_dynamics_.shape_ == DynamicsShape::STEP && transition_dynamics_.dimension_ == DynamicsDimension::TIME)
{
elapsed_ += dt;
if (elapsed_ >= transition_dynamics_.target_value_)
OSCAction::End();
return;
}
边栏推荐
- HDU1232 畅通工程(并查集)
- editplus
- "Source code interpretation" famous programmer TJ's only library
- Unforgettable summary of 2021
- Pagoda create multiple sites with one server
- What does soda ash do?
- CADD course learning (5) -- Construction of chemosynthesis structure with known target (ChemDraw)
- 并查集理论讲解和代码实现
- Charles- unable to grab bags and surf the Internet
- 借助 Navicat for MySQL 软件 把 不同或者相同数据库链接中的某数据库表数据 复制到 另一个数据库表中
猜你喜欢
Rough notes of C language (1)
Altimeter data knowledge point 2
Close of office 365 reading
Play with grpc - go deep into concepts and principles
Matrix and TMB package version issues in R
Daily Practice:Codeforces Round #794 (Div. 2)(A~D)
I 用c I 实现队列
M2dgr slam data set of multi-source and multi scene ground robot
Hdu1231 maximum continuous subsequence (divide and conquer or dynamic gauge or double pointer)
Butterfly theme beautification - Page frosted glass effect
随机推荐
How to delete the virus of inserting USB flash disk copy of shortcut to
The mutual realization of C L stack and queue in I
HDU1231 最大连续子序列(分治or动规or双指针)
golang定时器使用踩的坑:定时器每天执行一次
D2L installation
Set theory of Discrete Mathematics (I)
Jenkins reported an error. Illegal character: '\ufeff'. Class, interface or enum are required
Hdu1231 maximum continuous subsequence (divide and conquer or dynamic gauge or double pointer)
R language learning notes 1
Delayqueue usage and scenarios of delay queue
Anaconda navigator click open no response, can not start error prompt attributeerror: 'STR' object has no attribute 'get‘
C learning notes
公安专业知识--哔哩桐老师
The problem of configuring opencv in qt5.13.2 is solved in detail
editplus
What is soda?
Qu'est - ce que l'hydroxyde de sodium?
Detailed explanation of miracast Technology (I): Wi Fi display
With the help of Navicat for MySQL software, the data of a database table in different or the same database link is copied to another database table
Idea shortcut key