Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

How to Make a simple Knot with Rope simulation

Discussion in 'Getting Started' started by Narendraom, Jul 20, 2015.

  1. Narendraom

    Narendraom

    Joined:
    Jul 8, 2015
    Posts:
    35
    I want to make a Knot with simple rope. Can anyone please tell how can I do it , I want to make a simple rope and in game some simple control over so why I can make knot with this rope.
     
  2. Schneider21

    Schneider21

    Joined:
    Feb 6, 2014
    Posts:
    3,510
    If you think about what you're asking, there's not really much simple about it.

    Ropes are a surprisingly complicated thing to simulate in physics engines. They don't really have joints so much as they do a single body that bends, stretches, becomes taught, has friction, is affected by gravity, etc. If you were doing something like Cut the Rope, that'd be one thing, but if you're talking about tying knots, it pretty much demands you calculate for all 3 dimensions.

    Controls are likely to be fairly complicated, too, since you have to be able to maneuver in between parts of this object. In real life, it's easy for my fingers to just move behind one another to manipulate a piece of string, but to handle that on a 2D screen using mouse, keyboard, or joystick...

    How about some more information about what you want to do. Is this a Knot Tying Simulator, or is this one mechanic in a larger game? And of course, because of the way you're talking, I'm assuming your experience level is fairly low, so the next question any of us will ask you is: Have you gone through the official tutorials?
     
    quuxman and JoeStrout like this.
  3. Narendraom

    Narendraom

    Joined:
    Jul 8, 2015
    Posts:
    35
    It is simple Knot tying simulator. I have to tie a model as given image .
     
  4. Schneider21

    Schneider21

    Joined:
    Feb 6, 2014
    Posts:
    3,510
    Ah, so you're making Bondage Tycoon. Interesting.

    There are still a lot more questions you need to answer yourself before anyone can help you.
    1. How does the game play? What's the main game mechanic? Is it the challenge of actually tying the knots, or is it more choosing the correct knot for each situation? How does one attach the nipple clamps?
    2. What platform will you be targeting? Consoles (using a controller for input), PC (mouse and keyboard), or mobile (touch screen). All would have very different ways of interacting with and using your rape kit.
    3. Is this a realistic project for your first foray into game development? Be honest. If not, how can you boil it down to its simplest elements and still get achieve what you're going for? And are you going to release it in sync with the 50 Shades of Gray sequel?
    Knowing these answers and planning your game ahead of time will save you a ton of headaches later. And it will give you a shot at actually finishing your game.
     
  5. Narendraom

    Narendraom

    Joined:
    Jul 8, 2015
    Posts:
    35
    Thanks.
    Now you understand what I want to do.

    Answer for your question is.
    1. it is the challenge of actually tying the knots,
    2.Target platform is mobile (touch screen).
    3 this is a realistic project for game development. I just want to tie a model with Knot.

    It is user who learn the basics of tying knot. I just make availability of rope and model and some control for tying model.But I am still stuck how can I achieve this.
     
  6. Schneider21

    Schneider21

    Joined:
    Feb 6, 2014
    Posts:
    3,510
    So that's what I mean by realistic... If it's entirely beyond the scope of your current knowledge level, it might not be feasible for you to do this just yet.

    It's strongly recommended you go through the official tutorials to get comfortable with the Unity Editor and how the engine works. I'd also recommend you familiarize yourself with how to write scripts, and read as much as you can on rope and cloth physics simulation.

    If, after all that, you still don't know where to begin, then you may have to shelve this project until you get some experience under your belt. I don't want to dissuade you from attempting your game, but if you don't even know how to start, there's not much the community can do to help you, either.
     
    Martin_H likes this.
  7. Schneider21

    Schneider21

    Joined:
    Feb 6, 2014
    Posts:
    3,510
    Additionally, if you are targeting mobile, you should read Google and Apple's policy on app content to see if your vision will violate any of their terms. I can tell you right off the bat that if your game involves bondage, there's a strong chance it will be rejected by Apple.
     
    Martin_H likes this.
  8. Narendraom

    Narendraom

    Joined:
    Jul 8, 2015
    Posts:
    35
    Sure. So I am not going to make game which contain adult anything, it only contains Wooden Model and a rope which is used to make Knot.
     
  9. FadiGames

    FadiGames

    Joined:
    Jul 23, 2015
    Posts:
    15
    I would recommend using a 3D model with many bones for the rope, then you can manipulate the bones through an input-dependent script. I don't know why, but I don't think the physics engine will add value to the realistic movement for such mechanics
     
    Last edited: Jul 23, 2015
    Narendraom likes this.
  10. Narendraom

    Narendraom

    Joined:
    Jul 8, 2015
    Posts:
    35
    Thanks ....
    I am going through it. it was already in my mind.
     
    FadiGames likes this.
  11. quuxman

    quuxman

    Joined:
    May 16, 2016
    Posts:
    2
    Do you know of any physics engine that supports elastic knots nicely? Ideally one that compiles to JavaScript, as that's my target.
     
  12. quuxman

    quuxman

    Joined:
    May 16, 2016
    Posts:
    2
    I've recently became interested in stimulating knots along with entangled rigid bodies for a puzzle / building game.

    You're right, bones are not satisfactory at all for this. At best you'd get a chain simulation. For knots, friction is needed, along with changing diameter based on tension / pressure, stretching, and ideally optimization for complex states for statically representing topologically + orientation, and for dynamically stimulating forces. I highly doubt any existing physics engine covers all of this.