Topic was automatically imported from the old Question2Answer platform.
Asked By
gregbug
hi guys,
i’m trying to make a wrap around object (rigidbody) and followed the last example (asteroid) in this link (kids
can code) and ok it’s works using _integrate_forces().
i added a rope as child of main object and when object wrap the rope don’t follow main object and mess all the physics and movement.
i’m going crazy… i don’t know if is my fault (for sure) or a godot bug
i’m tryng to port to godot an old game i published some years ago using gideros… “GidHelix”
Well I am pretty sure its too late for you but if anyone else stumbles at this:
The problem is that the PinJoint2D will work even when just half of the object has passed through the screen wrap.
And since the screen wrap is just a teleporter the pinjoint will pull on it when its in the middle of the screenwrap.
I am not that experienced with godot but what I’d try is apply the teleportation on every link of the rope once and only if the main rigidbody is teleported.