+1 vote

this problem came up in a block building vehicle prototype.

Problem is when the vehicles collide nothing happens. I am using moveandcollide on the kinematic body that is the parent node of all the block child nodes.

I know the problem is that the kinematic body does not contain any direct collisionbody children, since they are all children of block nodes. I am just not sure how to solve this.

Since I have multiple block types, each saved as its own scene, and i load different blocks at runtime depending on the json config file for that vehicle. Since a scene can only have one root node, I need to have a spacial/node/kinematic for each block as the parent. But then my player kinematicbody wont link to those collision bodies in the blocks.

Any ideas?

in Engine by (15 points)

Were you able to solve this? I ran into the same issue and my current workaround is on startup reparenting the collision nodes to the parent. Feels very against the concept :/

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.