Skip to content

Conversation

@jasonwinterpixel
Copy link

Use set_notify_transform() instead of set_notify_local_transform().


Box2DPhysicsBody::Box2DPhysicsBody() {
set_physics_process_internal(true);
set_notify_local_transform(true);
Copy link
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

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
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