From 0d3e8538ef4703955499fc0f8d532a99c92cb689 Mon Sep 17 00:00:00 2001 From: Marcel Admiraal Date: Thu, 24 Sep 2020 15:11:06 +0100 Subject: Update Bullet Area overlaps when Area properties or shapes change. --- modules/bullet/collision_object_bullet.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/bullet/collision_object_bullet.cpp') diff --git a/modules/bullet/collision_object_bullet.cpp b/modules/bullet/collision_object_bullet.cpp index a3158a15e5..9ae688d7df 100644 --- a/modules/bullet/collision_object_bullet.cpp +++ b/modules/bullet/collision_object_bullet.cpp @@ -181,6 +181,7 @@ void CollisionObjectBullet::on_exit_area(AreaBullet *p_area) { void CollisionObjectBullet::set_godot_object_flags(int flags) { bt_collision_object->setUserIndex2(flags); + updated = true; } int CollisionObjectBullet::get_godot_object_flags() const { @@ -214,7 +215,7 @@ const btTransform &CollisionObjectBullet::get_transform__bullet() const { } void CollisionObjectBullet::notify_transform_changed() { - isTransformChanged = true; + updated = true; } RigidCollisionObjectBullet::~RigidCollisionObjectBullet() { -- cgit v1.2.3