Body that created in physics server 2d doesn't collide

Godot Version

4.3

Question

I add 2d body to physics server to test collision, but it doesn’t collide with other bodies. Only nodes work.
I tried checking physics space. They are all at the same space.
And layer/mask keeps default 1.
Here is the problem project:

You need to hold a reference to the box_shape resource somewhere. Currently the shape is removed when your box_shape variable drops its reference.

1 Like

Solved! Thank you so much! I thought the physics server owns shapes and collision bodies…

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.