- Home /
Hinge Problem
I have a problem with joints, any kind of joints.
I made a working truck and a working trailer.
(working on android)
I connect the truck and the trailer using this scheme:
Are there any configuration that I have to make? Any ideas?
Answer by robertbu · Jan 13, 2013 at 02:19 AM
I too have been frustrated by joints lately. No magic fixes, but a few things to try. I found I got a tighter connection when I reduce the mass of my simulation. I had some success by carefully limiting velocity. Something line:
if (rigid_body.velocity.magnitude > 10.0f)
rigid_body.velocity = rigid_body.velocity.normalized * 10.0f;
I've played with directly changing the position. In LateUpdate() you can use Rigidbody.MovePosition() to place the trailer over the pin.
You might also play with projectionMode/projectionDistance/projectionAngle in the Configurable joint.
Your answer
Follow this Question
Related Questions
How to fix the problem with joint! HELP I CAN NOT UNDERSTAND! 0 Answers
Tree View List Problems 2 Answers
Set targetjoint2d anchor position at mouse position in 2d 0 Answers
Constraint not totally working after manually overriding a joint rotation 0 Answers
Ragdoll joints aren't staying connected. 0 Answers