- Home /
Question by
sharahamo · Aug 09, 2017 at 12:05 PM ·
2d gamerigidbody2dspringjointfixedjointconnectedbody
Physics for multiple connections - advice needed
I am developing a game with system like the following, and I do not know what exactly the kind of connection I need for the system:
What I am trying to do is:
BirdLeft to be connected to RopeLeft and Bird Right to be connected to the RopeRight
Both RopeLeft and RopeRight are connected to the Nest
Both RopeRight and RopeLeft act like a spring, which can be shortened and lengthened (in x direction only) based on my input. For example, if I shortened the RopeRight, RopeLeft will be lengthened and the Nest will move to the right.
Both BirdLeft and BirdRight will stay in place.
What I need advice on is:
What kinds of connected (fixed connection, spring connection?) do I need on each body, and where?
How to make the rope acts as a spring?
screen-shot-2017-08-09-at-125542.png
(74.3 kB)
Comment