Yea, I misunderstood you there. Sorry about that.
I tried what you suggested and it gives me an error (parameter 'p_child' is null
). Meanwhile I remembered I could turn on "Visible Collision Shapes" for testing, and the way I was doing it does have the collision polygons in-game, they just don't seem to collide with anything...
Here's the entire code if you or anyone else is interested in seeing or testing it. (It's all in one file, so it should work in just a simple Node2D, no need to even create a new project -- you'll just need to add a StaticBody to test collisions, though).
Just a simple explanation of what I'm doing: it basically creates a bunch of "particles" (which are KinematicBodies) when the mouse is clicked. The intention is to test ways to create persistent blood effects, and for now I'm using an Image where I draw all the particles once they stop moving, so I can get rid of them and still preserve their final effect. However I'd like those particles to collide with walls and stuff while they're moving... This is for a top-down game.
(And by the way, just in case you're wondering, the StaticBodies I'm using to test collisions are properly set up. I have two of them, plus a RigidBody that falls on them and collides, and a simple Player character that collides too. So on that side of things everything is working fine...)