mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
Automatically wake up rigid bodies if user changes the transform.
This commit is contained in:
parent
53425a0262
commit
84187f6e6d
@ -236,6 +236,11 @@ transform_changed() {
|
||||
shape->set_local_scale(scale);
|
||||
}
|
||||
}
|
||||
|
||||
// Activate the body if it has been sleeping
|
||||
if (!_rigid->isActive()) {
|
||||
_rigid->activate(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user