Heyvern! Will your bone-locking script work for my necklace?

Wondering how to accomplish a certain animation task? Ask here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
jhbmw007
Posts: 382
Joined: Thu Feb 15, 2007 5:41 am

Heyvern! Will your bone-locking script work for my necklace?

Post by jhbmw007 »

A while ago I posted a question asking if anyone knew how to make a necklace that had bone dynamics as such that it would "sway" with the movement of the character. I ended up getting kinda close- but as everyone knows AS's bone locking doesn't really "lock" all that well...

So I was just curious Heyvern- if your fancy bone-locking script would now make this possible? I tried to take a look at it- but the problem is I couldn't make heads or tails of it :?

Here's the original thread:
viewtopic.php?t=8141
User avatar
heyvern
Posts: 7042
Joined: Fri Sep 02, 2005 4:49 am

Post by heyvern »

What actually would work better than the bone locking script would be spring physics. I am still working on that one. I've got "springs" I'm just having trouble making them not "stretch" to create chains. ;)

Instead of using AS dynamics the two ends of the chain would be the lock points of a physics simulation. Those end bones could be children of other bones so they would move with the character.

I've been trying to get all my physics simulation code into one unified utility script for easier use with AS.

Now that I have learned how to save preference files and do this bone colorizing trick without needing special names for bones, I can apply the same concept to physics. Select bones, choose a type of physical property (gravity springs etc) and then run the animation.

I can see applying this "trick" to all of my scripts in the future. No need to give bones special names, just add them as a reference to an external file that is loaded with the anme file.

My bone locking script would probably not work with AS dynamics. I didn't really account for that. I don't like the dynamics in AS at all to be honest. I think too it would have the same issues of having a circular chain with a "top" bone and an "end" bone instead of two "ends".

-vern

-vern
User avatar
heyvern
Posts: 7042
Joined: Fri Sep 02, 2005 4:49 am

Post by heyvern »

In this example imagine both ends "locked" to the same bone and no stretching:

http://www.lowrestv.com/moho_stuff/scripts/springs1.mov

-vern
User avatar
jhbmw007
Posts: 382
Joined: Thu Feb 15, 2007 5:41 am

Post by jhbmw007 »

That's what I need! The stretching really wouldn't be a problem as long as each connection doesn't stretch too much. Can you take that example and lock both ends, or is that what you're working on?

In your example, the circles would be the links of my necklace, and the lines that connect them would be invisible in my model, so you wouldn't actually see any stretching... But the circles would need to be closer together so that they overlap.
Post Reply