mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 21:23:18 +02:00
Reset fix.
This commit is contained in:
parent
15f7b70269
commit
3cca3dc894
2 changed files with 4 additions and 3 deletions
|
@ -118,9 +118,7 @@ void BlendFace::simulate(float deltaTime) {
|
|||
for (int j = 0; j < vertexCount; j++) {
|
||||
destVertices[j] = glm::vec3(transform * glm::vec4(sourceVertices[j], 1.0f));
|
||||
destVelocities[j] = glm::vec3();
|
||||
}
|
||||
_resetStates = false;
|
||||
|
||||
}
|
||||
} else {
|
||||
const float SPRINGINESS_MULTIPLIER = 200.0f;
|
||||
const float DAMPING = 5.0f;
|
||||
|
@ -141,6 +139,7 @@ void BlendFace::simulate(float deltaTime) {
|
|||
}
|
||||
}
|
||||
}
|
||||
_resetStates = false;
|
||||
}
|
||||
|
||||
bool BlendFace::render(float alpha) {
|
||||
|
|
|
@ -117,6 +117,8 @@ void Head::reset() {
|
|||
if (USING_PHYSICAL_MOHAWK) {
|
||||
resetHairPhysics();
|
||||
}
|
||||
|
||||
_blendFace.reset();
|
||||
}
|
||||
|
||||
void Head::resetHairPhysics() {
|
||||
|
|
Loading…
Reference in a new issue