Block Building Vehicle Prototype - Help

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Alex Zanfir

I am able to load in vehicles as blocks from a json vehicle design file i made. Problem is when the vehicles collide nothing happens. I am using move_and_collide 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?

:bust_in_silhouette: Reply From: Sween123

The parent node that contains all the block instances shouldn’t be the kinematic body. Use Kinematic for each block scene.