Reset fix.

This commit is contained in:
Andrzej Kapolka 2013-10-08 14:06:04 -07:00
parent 15f7b70269
commit 3cca3dc894
2 changed files with 4 additions and 3 deletions

View file

@ -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) {

View file

@ -117,6 +117,8 @@ void Head::reset() {
if (USING_PHYSICAL_MOHAWK) {
resetHairPhysics();
}
_blendFace.reset();
}
void Head::resetHairPhysics() {