diff --git a/scene/2d/box2d_area.cpp b/scene/2d/box2d_area.cpp index ae12ec8..36ddc90 100644 --- a/scene/2d/box2d_area.cpp +++ b/scene/2d/box2d_area.cpp @@ -88,7 +88,7 @@ void Box2DArea::_notification(int p_what) { last_step_xform = get_box2dworld_transform(); } - case NOTIFICATION_LOCAL_TRANSFORM_CHANGED: { + case NOTIFICATION_TRANSFORM_CHANGED: { // Send new transform to physics Transform2D new_xform = get_box2dworld_transform(); diff --git a/scene/2d/box2d_collision_object.cpp b/scene/2d/box2d_collision_object.cpp index 3716ca6..23d7f63 100644 --- a/scene/2d/box2d_collision_object.cpp +++ b/scene/2d/box2d_collision_object.cpp @@ -337,7 +337,7 @@ Box2DCollisionObject::Box2DCollisionObject() { filterDef.maskBits = 0x0001; set_physics_process_internal(true); - set_notify_local_transform(true); + set_notify_transform(true); } Box2DCollisionObject::~Box2DCollisionObject() { diff --git a/scene/2d/box2d_physics_body.cpp b/scene/2d/box2d_physics_body.cpp index 9f8aa8d..0e192eb 100644 --- a/scene/2d/box2d_physics_body.cpp +++ b/scene/2d/box2d_physics_body.cpp @@ -357,7 +357,7 @@ void Box2DPhysicsBody::_notification(int p_what) { set_process_internal(false); } break; - case NOTIFICATION_LOCAL_TRANSFORM_CHANGED: { + case NOTIFICATION_TRANSFORM_CHANGED: { Mode type = get_type(); Transform2D new_xform = get_box2dworld_transform(); @@ -1183,7 +1183,6 @@ bool Box2DPhysicsBody::is_sync_to_physics_enabled() const { Box2DPhysicsBody::Box2DPhysicsBody() { set_physics_process_internal(true); - set_notify_local_transform(true); } Box2DPhysicsBody::~Box2DPhysicsBody() {