Hi, I am making platfomer game and I am making ropes on platforms.
But that isn’t important.
Simply I have 2 right bodies and I want to stick them together progamically so I can change how big will be the platform in code.
You probably want to add a joint between the platforms. https://docs.godotengine.org/en/stable/classes/class_joint2d.html#class-joint2d PinJoint2D may be your best bet.
@cybereality said: You probably want to add a joint between the platforms. https://docs.godotengine.org/en/stable/classes/class_joint2d.html#class-joint2d PinJoint2D may be your best bet.
Will it be sticked together and it would no change its angle and space between it? Because I use PinJoint2D fro my rope and it is changing is angle. I want to act it as a glue
Well, I've actually never tried it. You'll have to check it out in your project, it does look like the most promising option but maybe there is another way.
Yeah, it works as I expected it do not acts as a solid but it is changing it’s angles and changing spaces. How can I do that gravity will not work on it?
Have you tried a kinematic? They don't rotate the same way as a rigidbody2d
I mean both platforms as kinematicbody2d
@Sparrow said: Have you tried a kinematic? They don't rotate the same way as a rigidbody2d I mean both platforms as kinematicbody2d
@Sparrow said: Have you tried a kinematic? They don't rotate the same way as a rigidbody2d
Yes, but this is causing another problem because the platform then cannot collide with player. Never mind I stopped doing the platform on ropes because whenever the player jumped on the platform in goes all the way down. It would be great to have in godot max length of joint.