x


Scripting troubles, dragging to bend hinge joints

I'm struggling to figure out a way to set up an 'arm' that can be positioned at runtime by dragging the hand. What I'm getting is an arm that flails around and is totally uncontrollable.

I figure that I'm either missing something when setting up the joints, or my drag script is missing something. The joints are all set up with Hinge Joints, hinging on the z axis. The colliders are all sized so they don't intersect. And I have a dragging script that works fine otherwise and does work with rigidbodies using MovePosition at FixedUpdate.

I know that this isn't a whole lot of info to go on, but has anyone done this before and have an idea what may be missing?

more ▼

asked Sep 17 '11 at 02:34 AM

Steven Walker gravatar image

Steven Walker
862 25 32 49

I never found a solution to this. Instead I scrapped the idea and used scripted rotation instead.

Sep 22 '11 at 10:54 PM Steven Walker
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

I believe that you're 'simply' trying to implement inverse kinematics. In that case, the only way to achieve them is to make the parent bones drive the sub bone into the desired position.

This is usually 3d editor stuff, computationally intensive. Efficiency wise, in games you just use animations made from inverse kinematic rigged characters, heh.

more ▼

answered Sep 23 '11 at 05:03 AM

roamcel gravatar image

roamcel
1.2k 37 40 44

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3570
x1864
x291
x107

asked: Sep 17 '11 at 02:34 AM

Seen: 818 times

Last Updated: Sep 23 '11 at 05:03 AM