diff options
author | Camille Mohr-Daurat <pouleyKetchoup@gmail.com> | 2021-11-18 12:04:41 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-18 12:04:41 -0700 |
commit | 756eab200b41f842a5480681f5c48905ffbb88b0 (patch) | |
tree | 92f5eebfd2281ff2848f6169f1fb364c92bfbebb /modules/bullet/collision_object_bullet.h | |
parent | b7260e04cc2aa66b2aa091cfb508cbf4a14dc677 (diff) | |
parent | 0d3e8538ef4703955499fc0f8d532a99c92cb689 (diff) | |
download | redot-engine-756eab200b41f842a5480681f5c48905ffbb88b0.tar.gz |
Merge pull request #42306 from madmiraal/fix-39947
Update Bullet Area overlaps when Area properties or shapes change.
Diffstat (limited to 'modules/bullet/collision_object_bullet.h')
-rw-r--r-- | modules/bullet/collision_object_bullet.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/bullet/collision_object_bullet.h b/modules/bullet/collision_object_bullet.h index 944ab89b87..6d2c564e44 100644 --- a/modules/bullet/collision_object_bullet.h +++ b/modules/bullet/collision_object_bullet.h @@ -128,7 +128,7 @@ protected: /// New area is added when overlap with new area (AreaBullet::addOverlap), then is removed when it exit (CollisionObjectBullet::onExitArea) /// This array is used mainly to know which area hold the pointer of this object Vector<AreaBullet *> areasOverlapped; - bool isTransformChanged = false; + bool updated = false; public: CollisionObjectBullet(Type p_type); @@ -206,9 +206,9 @@ public: Transform3D get_transform() const; virtual void set_transform__bullet(const btTransform &p_global_transform); virtual const btTransform &get_transform__bullet() const; - - bool is_transform_changed() const { return isTransformChanged; } virtual void notify_transform_changed(); + + bool is_updated() const { return updated; } }; class RigidCollisionObjectBullet : public CollisionObjectBullet, public ShapeOwnerBullet { |