Fixed dispatch callback
This commit is contained in:
parent
aea1b2e6c3
commit
0f5c87bfa4
1 changed files with 1 additions and 1 deletions
|
@ -339,7 +339,7 @@ void RigidBodyBullet::set_space(SpaceBullet *p_space) {
|
|||
|
||||
void RigidBodyBullet::dispatch_callbacks() {
|
||||
/// The check isTransformChanged is necessary in order to call integrated forces only when the first transform is sent
|
||||
if (previousActiveState != btBody->isActive() && force_integration_callback && isTransformChanged) {
|
||||
if ((btBody->isActive() || previousActiveState != btBody->isActive()) && force_integration_callback && isTransformChanged) {
|
||||
|
||||
BulletPhysicsDirectBodyState *bodyDirect = BulletPhysicsDirectBodyState::get_singleton(this);
|
||||
|
||||
|
|
Loading…
Reference in a new issue