Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move collision layer and mask into CollisionObject. #42770

Merged
merged 1 commit into from
Apr 20, 2021

Conversation

madmiraal
Copy link
Contributor

Currently, in both 2D and 3D, collision_layer and collision_mask are implemented in both Area and PhysicsBody and not their parent CollisionObject. This PR removes the duplication by moving collision_layer and collision_mask to CollisionObject where it belongs.

Fixes #26680.

@madmiraal
Copy link
Contributor Author

Rebased following merge of #42778.

@madmiraal
Copy link
Contributor Author

Rebased following merge of #44630 and #45852.

scene/3d/collision_object_3d.cpp Outdated Show resolved Hide resolved
@pouleyKetchoupp pouleyKetchoupp requested a review from a team April 19, 2021 17:38
@madmiraal
Copy link
Contributor Author

Rebased following merge of #47991.

@akien-mga akien-mga merged commit b06116d into godotengine:master Apr 20, 2021
@akien-mga
Copy link
Member

Thanks!

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

Successfully merging this pull request may close these issues.

Difficult to work with Area2D/PhysicsBody2D in C# due to duplicated code in Godot Engine
4 participants