mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 11:45:36 +02:00
restore clear of follow accumulators
This commit is contained in:
parent
63042eea3a
commit
6e8d90e3b6
1 changed files with 4 additions and 0 deletions
|
@ -746,6 +746,10 @@ void CharacterController::preSimulation() {
|
|||
|
||||
_previousFlags = _pendingFlags;
|
||||
_pendingFlags &= ~PENDING_FLAG_JUMP;
|
||||
|
||||
_followTime = 0.0f;
|
||||
_followLinearDisplacement = btVector3(0, 0, 0);
|
||||
_followAngularDisplacement = btQuaternion::getIdentity();
|
||||
}
|
||||
|
||||
void CharacterController::postSimulation() {
|
||||
|
|
Loading…
Reference in a new issue