mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 05:52:31 +02:00
add "simulate" stat name to Avatar::simulate()
This commit is contained in:
parent
6ffa09f9e6
commit
f463099d16
2 changed files with 1 additions and 1 deletions
|
@ -99,6 +99,7 @@ float Avatar::getLODDistance() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Avatar::simulate(float deltaTime) {
|
void Avatar::simulate(float deltaTime) {
|
||||||
|
PerformanceTimer perfTimer("simulate");
|
||||||
if (_scale != _targetScale) {
|
if (_scale != _targetScale) {
|
||||||
setScale(_targetScale);
|
setScale(_targetScale);
|
||||||
}
|
}
|
||||||
|
|
|
@ -130,7 +130,6 @@ void MyAvatar::update(float deltaTime) {
|
||||||
|
|
||||||
void MyAvatar::simulate(float deltaTime) {
|
void MyAvatar::simulate(float deltaTime) {
|
||||||
PerformanceTimer perfTimer("simulate");
|
PerformanceTimer perfTimer("simulate");
|
||||||
|
|
||||||
if (_scale != _targetScale) {
|
if (_scale != _targetScale) {
|
||||||
float scale = (1.0f - SMOOTHING_RATIO) * _scale + SMOOTHING_RATIO * _targetScale;
|
float scale = (1.0f - SMOOTHING_RATIO) * _scale + SMOOTHING_RATIO * _targetScale;
|
||||||
setScale(scale);
|
setScale(scale);
|
||||||
|
|
Loading…
Reference in a new issue