Skip to content

Commit fddd48b

Browse files
Use set_notify_transform() instead of set_notify_local_transform().
1 parent 5f55923 commit fddd48b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scene/2d/box2d_physics_body.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ void Box2DPhysicsBody::_notification(int p_what) {
357357
set_process_internal(false);
358358
} break;
359359

360-
case NOTIFICATION_LOCAL_TRANSFORM_CHANGED: {
360+
case NOTIFICATION_TRANSFORM_CHANGED: {
361361
Mode type = get_type();
362362
Transform2D new_xform = get_box2dworld_transform();
363363

@@ -1183,7 +1183,7 @@ bool Box2DPhysicsBody::is_sync_to_physics_enabled() const {
11831183

11841184
Box2DPhysicsBody::Box2DPhysicsBody() {
11851185
set_physics_process_internal(true);
1186-
set_notify_local_transform(true);
1186+
set_notify_transform(true);
11871187
}
11881188

11891189
Box2DPhysicsBody::~Box2DPhysicsBody() {

0 commit comments

Comments
 (0)