Skip to content

Listen to Global Transform Change notifications#76

Open
jasonwinterpixel wants to merge 1 commit intobriansemrau:3.xfrom
winterpixelgames:use_notify_transform
Open

Listen to Global Transform Change notifications#76
jasonwinterpixel wants to merge 1 commit intobriansemrau:3.xfrom
winterpixelgames:use_notify_transform

Conversation

@jasonwinterpixel
Copy link
Copy Markdown

Use set_notify_transform() instead of set_notify_local_transform().


Box2DPhysicsBody::Box2DPhysicsBody() {
set_physics_process_internal(true);
set_notify_local_transform(true);
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not needed because Box2DCollisionObject's constructor does it.

@brianwinterpixel
Copy link
Copy Markdown

You can merge this straight into winterpixelgames:winterpixel-main. LGTM

Side-note, I could have sworn there were situations where I wrote:

set_notify_local_transform(false);
// do something
set_notify_local_transform(true);

But I don't see them now. Curious.

@jasonwinterpixel
Copy link
Copy Markdown
Author

jasonwinterpixel commented Oct 19, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants