Connecting RigidBody2Ds

Godot Version

4.0

Question

I’m working on a game in which the player constructs a robot from blocks, then uses it. Each block is expressed as a RigidBody2D, so when I try to control the whole thing, it crumbles into the individual block.tscn’s. Is there a way I can fix this and hold all the blocks together? (I’ve heard about PinJoint2D, but I’m looking for something where rotation isn’t possible).

On your pinjoint2D node, you can enable and set the angular limit. The angular limit allows you to set a minimum and maximum rotation values.