summaryrefslogtreecommitdiffstats
path: root/modules/bullet/collision_object_bullet.h
diff options
context:
space:
mode:
authorMarcel Admiraal <madmiraal@users.noreply.github.com>2020-09-24 15:11:06 +0100
committerMarcel Admiraal <madmiraal@users.noreply.github.com>2020-10-08 14:51:57 +0100
commit0d3e8538ef4703955499fc0f8d532a99c92cb689 (patch)
tree2aa1e692c588b9734690341f88e9bbd884114579 /modules/bullet/collision_object_bullet.h
parent53a3dfbf6b78cc3d0662abec4efa4bbeae4939f6 (diff)
downloadredot-engine-0d3e8538ef4703955499fc0f8d532a99c92cb689.tar.gz
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.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/bullet/collision_object_bullet.h b/modules/bullet/collision_object_bullet.h
index f1423a69e4..c23a21c519 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:
Transform 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 {