mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 10:43:13 +02:00
remove ragdoll from simulation in dtor
This commit is contained in:
parent
395f643f1b
commit
ee0d0a1566
1 changed files with 3 additions and 0 deletions
|
@ -24,6 +24,9 @@ Ragdoll::Ragdoll() : _massScale(1.0f), _ragdollTranslation(0.0f), _translationIn
|
|||
|
||||
Ragdoll::~Ragdoll() {
|
||||
clearRagdollConstraintsAndPoints();
|
||||
if (_ragdollSimulation) {
|
||||
_ragdollSimulation->removeRagdoll(this);
|
||||
}
|
||||
}
|
||||
|
||||
void Ragdoll::stepRagdollForward(float deltaTime) {
|
||||
|
|
Loading…
Reference in a new issue