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

The adventurous configuration of a joint!

Discussion in 'Editor & General Support' started by Dr.Pure, Feb 13, 2011.

  1. Dr.Pure

    Dr.Pure

    Joined:
    Sep 20, 2009
    Posts:
    136
    Heyhey, I try to accomplish this joint behaviour:

    It's basically a fixed joint mixed with a little spoon of a spring joint. At low velocities the two connected rigidbodys should follow smoothly along each other without beeing locked to much like the fixed joint. But at the other end the rigidbodys shouldn't behave like they are connected with a spring or a rope, more like a smooth fixed joint. Many of these joints should connect blocks, giving them a flexible, wagging but also a robust behaviour. They also should break when applying to much force to them.

    How should a configurable joint should be configurated to be like this? Recently I failed to set up a proper spring joint, maybe I've missed a certain combination of settings there that would behave like I want.

    Who is a joint master in here? ;D
     
  2. andeeeee

    andeeeee

    Joined:
    Jul 19, 2005
    Posts:
    8,768
    I'm not sure there is a configuration that will give you this behaviour directly. The main issue is that there isn't a setting to vary the joint's stiffness according to the velocity of the rigidbody. Maybe you could vary the spring properties in the angular and linear according to the magnitude of rigidbody.velocity to make it stiffer at speed. The break force should be no problem.
     
  3. Dr.Pure

    Dr.Pure

    Joined:
    Sep 20, 2009
    Posts:
    136
    Yea, I thought to do something like this! It would be a "intelligent" joint then. I'll try it, thanks for the hint =)
     
  4. kweiko

    kweiko

    Joined:
    Mar 9, 2010
    Posts:
    103
    Hey I thought I might as well reply here instead of creating a new thread about joint configuration.

    I need to create joints which behave like those between train sections, so they would follow each other smoothly both vertically and horizontally. I managed to do the horizontal part with a hinge joint, but it doesn't seem to work on plural angles (both horizontally and vertically) when I tried giving a value to both Y and X axis. I've tried creating another joint for each section and have the X axis's value be 1, so that it can bend on slopes (like this for example: http://3.bp.blogspot.com/_-xDUX0H9Z...aeE/s400/triple-thrills-roller-coaster-10.jpg) and I've tried using different limits up to min = -10, max = 10, but nothing happens. What could be wrong?

    Hope that made any sense!

    Thanks
    /Kweiko
     
  5. kweiko

    kweiko

    Joined:
    Mar 9, 2010
    Posts:
    103
    *bump* (just noticed this could be wrong section, I wonder if I should copy paste my question in the scripting section...)
    in which case, I still need help with this one ;_;
     
    Last edited: Feb 16, 2011
  6. andeeeee

    andeeeee

    Joined:
    Jul 19, 2005
    Posts:
    8,768
    If the joint should bend in two axes at the same position then you might find it easier to use a configurable joint. You can keep the X/Y/Z motion constraints set to Locked and allow angular movement in two of the axes (or three if you need the sections to "roll" relative to each other).