Questions tagged [rope-physics]
Ropes, chains, vines, rubber fishing lines, and other manners of long-bodied objects that can twist or wrap around objects in the game world, and the physics of how they move about.
43 questions
1
vote
0
answers
29
views
UE5 cloth + rope simulation
Can anyone suggest how I can simulate with physics, a cloth in UE5 supported by ropes?
My model is made in blender with cylinder profile ropes (7.5mm), and the net is a plane. The model is subdivided ...
0
votes
0
answers
30
views
How to make `Cloth` component in Unity behave like ribbon used in Rhythmic Gymnastics?
In Unity, I'm trying to implement the following:
A Rhythmic Gymnastics-ribbon, controlled with the mouse.
Like this:
Problem:
I'm not good at physics and I think implementing this properly requires ...
0
votes
1
answer
289
views
Tethering Two GameObjects Together By a Rope Through Code
What I need assistance with:
I need to create a rope connecting two GameObjects together at runtime through code.
One end will be connected to Transform _pointA ...
2
votes
1
answer
419
views
2D Pathfinding with rope constraint
I have a character linked by a rope to a fixed point, in an environment with obstacles.
I want to do a pathfind that take into account the rope.
Here, if the character followed my current pathfind in ...
0
votes
0
answers
36
views
Springy / Stretchy rope
I have a 2D rope cutting game similar to cut the rope, and I want to add ropes that can be extended further than if it laid flat. Easy said: I want to stretch the rope.
Currently I have a parent game ...
2
votes
1
answer
102
views
Pin object to the end of a rope
I'm trying to make a cool simulation where a rope swings with an object attached to its end. I've set up the rope using Verlet integration and used Hooke's law to attach the object. But here's the ...
2
votes
1
answer
825
views
How to implement grapple hook and swing
I'm trying to make a retro style grapple hook / swing system that has a constant speed and is not based on real-life physics. Like the one in Axiom Verge, Bionic Commando (NES) and Super Metroid.
0
votes
1
answer
50
views
How do I align segments of rope to connect adjacent segments?
I have made a 2D rope in Godot using this thread here.
The problem I am facing now is that the rope is not rotating towards player. I have tried look_At but it only ...
0
votes
1
answer
107
views
Implementing tension in chain/rope pulling
I'm trying to implement the movement of a chain of segments connected to each other (gravity, mass, etc. are not involved). The chain can only be dragged by its "head" segment. Each segment ...
0
votes
0
answers
333
views
Wobble physics like Sandwich Runner Unity3d
Here's the game, that's the wobble! I am trying to make a hypercasual game similar to Sandwich Runner, I can't quite figure out how the wobble mechanics was made! Where the stacked objects wobble when ...
1
vote
0
answers
212
views
How can I allow the rope to correctly interact with Box and Polygon colliders?
In order to build 2d rope physics in my game, I download the github project from Jongallant in this link. In my game, I want the rope to collide with objects with different types of colliders such as ...
2
votes
1
answer
116
views
Pulling chain/rope up and updating the path of the chain
I am trying to update the path of a chain (currently being stored in my code as a array of points) by moving one end of it up. I need the start of the chain to remain fixed in its location and the end ...
0
votes
0
answers
468
views
How to make two connected rigidbodies pull each other?
I'm making a game in Unity where a ship can connect to a rock in space, and drag it. Both are Rigidbody2D. I want the ship to be affected by the rock like this:
If I drag the rock, then stop the ship,...
0
votes
0
answers
207
views
Whenever I grapple onto a RigidBody, the grappling/reeling mechanics glitch out in Unity. How can I fix this?
I'm trying to make a game in Unity 2020.1, the feature I'm trying to prototype and test is a grapple gun. The grapple gun should grapple onto walls, and platforms reel the player in. I've implemented ...
1
vote
2
answers
4k
views
Basic pseudocode to create a rope physics
I am trying to simulate the physics of a 2D hanging rope, consistent of a series of n-links. It could be a series of four pendulums. I just want some movement of the rope and the ability to contact ...
4
votes
1
answer
763
views
Making a wrapping wire (like the Worms Ninja Rope) work correctly with moving geometry
I have implemented a 2D wire like the one described in this question which is made up of straight line segments between wrapping points. However, while the algorithms described in this answer work ...
1
vote
1
answer
401
views
Verlet chain with two fixed points is not converging properly
I am trying to create a simple chain between two fixed endpoints. The problem is that I can't seem to get the chain to reach a stable state. Further, the chain is always biased toward one of the ...
0
votes
1
answer
78
views
How to add undulation to a constraint-based chain?
I have a constraint-based chain composed of segments where each of the terminal segments has a fixed position.
My constraints are set up as follows:
...
1
vote
1
answer
967
views
How to make the player's weight deform a rope bridge?
I'm making a 2d game, and I want my character to deform my rope bridge with physics effects on the jointed structure when they walk over it.
Right now, the player can stand on the bridge, but it ...
2
votes
1
answer
509
views
How to constrain a ball and chain like object?
Following up on this question, I have created a snakelike enemy which consists of a head followed by segments. I get the segments to follow the head by constraining each segment's position relative ...
1
vote
0
answers
111
views
Simulating a curled phone wire in Unity
I'm made a model for a project at work (depicted in the image bellow) that requires me to create a somewhat realistic movement on a curled phone wire.
Here is what i have tried so far:
I've tried ...
1
vote
0
answers
315
views
Unity 2D extendable rope
I need the player to be able to drag a game object that is connected to a rope, and for the rope to extend with it. I have purchased Ultimate Rope Editor, but it looks like it was meant for Unity 3D, ...
1
vote
0
answers
435
views
Rope physics and cutting
I'm making a game where at some point there is a box hanged from the top that the player needs, and to bring it down he need to cut the rope, but i dont know where to begin how to creat the rope and ...
0
votes
1
answer
72
views
How do I set the Tag of joints[] to what I want in this script?
Hello I got this big script for building a Rope from position a to position b.
The joints are getting instantiated but the tag is default, what I have to change in the script to set the Tag of the ...
2
votes
2
answers
2k
views
Hinge joint rope breaks away when connected platform moves
I use hinge joint 2D components to create my rope, and a distance joint to connect it to a moving platform.
On the moving platform I have a distance joint that connects to the first chain joint, so ...
1
vote
1
answer
4k
views
Unity rope/cable physics / anchor points
I'm creating a cable in Unity, which should behave realistically. I found 2 different ways to approach the problem.
First was to simply rigg a subdivided cylinder in Blender, Cinema4D or whatever ...
0
votes
2
answers
8k
views
How can I render 2D ropes in Unity?
I'd like to be able to render flexible lines, or ropes, as below:
I thought about using a Line Renderer but it doesn't have the flexibility to render arbitrary curves.
2
votes
1
answer
2k
views
Unity 2D Hingejoints break under extreme force
I have added a rope to my game that is made up of multiple small gameobjects, each connected to eachother by a HingeJoint2D. Since 1 unit of mass in Unity is supposed to represent 1 kg, I've made the ...
2
votes
0
answers
1k
views
How To Create A Dynamic 2D Rope In Unity?
I'm trying to create a 2D rope in Unity that is fixed at one end and other is moving up and down to pick up objects just like a crane.
I've tried adding a cube and making more instances of it, ...
9
votes
2
answers
15k
views
How to create rope?
I'd like to re-create this game, but I have no idea how to create the rope, or its influences on the ball.
Basically, there is a rope, "attached", at one end, to the mouse pointer, and at the other ...
2
votes
2
answers
6k
views
Unity - Joint tearing under larger force
I have a chain that is made of connected configurable joints. I used ultimate rope builder for the rope chain creating.
The problem is that when i apply a larger force to the chain, it starts to tear ...
3
votes
1
answer
2k
views
How do I handle rope physics with fixed ends and a sliding weight?
I've been interested in rope physics recently—I've successfully implemented a simple Verlet rope with moveable ends. Now I am trying something a little different: I want to start by recreating the ...
0
votes
1
answer
827
views
Rope Colliding with a Rectangle
I have my rope, and I have my rectangles.
The rope is similar to the implementation found here: http://nehe.gamedev.net/tutorial/rope_physics/17006/
Now, I want to make the rope properly collide ...
2
votes
1
answer
637
views
Model a chain with different elements in Unity 3D
I have to model, in unity 3D, a chain that is composed of various elements. some flexible, some rigid. The idea is to realize a human-chain where each person is linked to the other by their hands.
I'...
5
votes
1
answer
2k
views
2D Rope with verlet and Semi-implicit Euler integration
I'm trying to create 2D rope. Chain based solution is not working pretty well, so I'm looking for new approach. Every good looking rope implementation is based on verlet integration, but this method ...
15
votes
0
answers
7k
views
Creating Rope Physics for Unity [closed]
I want to create a bungee jumping-like game in Unity and therefore I need a rope physics. I especially need elastic ropes with capability to pull objects with velocity after a little extension. Do you ...
2
votes
0
answers
665
views
how to attach a body to a rope and making it swing to another rope [closed]
I've set some ropes (using cocos2d and box2d) and would like to attach a body to one rope in such a way that it can swing to another rope. I am not sure how to go about this. I read making and object ...
1
vote
1
answer
2k
views
Making an object swing from one rope to another
I am trying to make a Tarzan like game with Cocos2D and Box2D. I am having issues with the physics - making an object swing from one rope to another. I am not really sure how to do this. Could anyone ...
9
votes
5
answers
7k
views
How can I easily implement swinging in a platformer game?
I'm developing a game in which player can use ropes to swing (just like what Spiderman or Bionic Commando did) and I'm having problem implementing this behavior. Can anyone help me how to do this, I ...
13
votes
5
answers
6k
views
2D Rope Collision Detection
I'm wanting to create a rope that can collide with objects like in the following youtube video:
2D Game Physics Rope
I'm thinking that you implement the verlet integration which uses points and ...
5
votes
1
answer
558
views
Strangeness when simulating a chain
I'm using box2d and I simply hook up 10 points each with a similar length constraint to the adjacent point.
When I move 1 point, the others follow just like a rope/chain. Just like one would expect.
...
10
votes
3
answers
3k
views
How do I calculate the forces exerted by a taut wire wrapping 2D objects?
Assume I have a physics primitive I am going to call a "wire", wrapped around a 2D environment (as described in this question).
Here's an illustration of what that might look like:
In the example ...
37
votes
6
answers
10k
views
Implementing a wrapping wire (like the Worms Ninja Rope) in a 2D physics engine
I've been trying out some rope-physics recently, and I've found that the "standard" solution - making a rope from a series of objects strung together with springs or joints - is unsatisfying. ...